Click or drag to resize

UnitSpherical Structure

A set of curvilinear 3-dimensional coordinates with unit magnitude.

Namespace:  AGI.Foundation.Coordinates
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 19.5.402.0 (19.5.402.0)
Syntax
public struct UnitSpherical : IEquatable<UnitSpherical>

The UnitSpherical type exposes the following members.

Constructors
  NameDescription
Public methodUnitSpherical(Double)
Initializes a set of UnitSpherical coordinates from the first 2 consecutive elements in the provided array.
Public methodUnitSpherical(Spherical)
Initializes a set of UnitSpherical coordinates from the provided set of Spherical coordinates.
Public methodUnitSpherical(UnitCartesian)
Initializes a set of UnitSpherical coordinates from the provided set of UnitCartesian coordinates.
Public methodUnitSpherical(Double, Double)
Initializes a set of UnitSpherical coordinates from the provided clock angle and cone angle.
Public methodUnitSpherical(Double, Int32)
Initializes a set of UnitSpherical coordinates from the provided array.
Top
Properties
  NameDescription
Public propertyClock
Gets the angular coordinate lying in the xy-plane measured from the positive x-axis and toward the positive y-axis.
Public propertyCone
Gets the angular coordinate measured from the positive z-axis and toward the negative z-axis.
Public propertyItem
Gets the value of the specified element with index of 0 and 1 corresponding to the coordinates Clock and Cone.
Public propertyLength
Gets the number of elements in this set of coordinates.
Public propertyMagnitude
Gets the linear coordinate measured from the origin. The value of this property is always 1.0.
Top
Methods
  NameDescription
Public methodEquals(Object)
Indicates whether another object is exactly equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(UnitSpherical)
Indicates whether another instance of this type is exactly equal to this instance.
Public methodEqualsEpsilon
Indicates whether each coordinate value of another instance of this type is within the required tolerance of the corresponding coordinate value of this instance.
Public methodGetHashCode
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the string representation of the value of this instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Returns if the two instances are exactly equal.
Public operatorStatic memberInequality
Returns if the two instances are not exactly equal.
Top
See Also