The Cartesian type exposes the following members.

Constructors

  NameDescription
Public methodCartesian(Double, Double)
Creates a unit vector from angular coordinates (RA, Dec).
Public methodCartesian(Cartesian, Boolean)
Creates a vector from another instance.
Public methodCartesian(Double, Double, Double, Boolean)
Creates a vector from coordinates (x,y,z).

Methods

  NameDescription
Public methodAdd
Adds another vector
Public methodAngleInArcmin
Calculates the angle to the specified point on the unit sphere
Public methodAngleInDegree
Calculates the angle to the specified point on the unit sphere
Public methodAngleInRadian
Calculates the angle to the specified point on the unit sphere
Public methodStatic memberCartesian2Radec
Converts a unit vector to (RA, Dec) angles.
Public methodStatic memberCartesian2RadecRadian
Converts a unit vector to (RA, Dec) angles.
Public methodStatic memberCenterOfMass
Computes the center of mass of specified vectors.
Public methodCross
Computes the cross product with another vector
Public methodDistance
Calculates Euclidean distance between two points.
Public methodDot
Computes the 3D dot product of the two vectors
Public methodEquals(Object)
Determines whether the vector is equal to the specified object.
(Overrides ValueType..::..Equals(Object).)
Public methodEquals(Cartesian)
Determines whether the the vector is equal to the specified vector.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFindBoundingSphere
Computes the near-optimal bounding sphere of a list of points.
Public methodGet
Get the ith component of this vector.
Public methodGetHashCode
Provides hashcode for the vector.
(Overrides ValueType..::..GetHashCode()()()().)
Public methodGetMiddlePoint
Returns middle point of two points (this and that)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGirardArea
Computes the Girard area.
Public methodStatic memberIsNaN
Determines whether the coordinates of the vectors are NaN.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberMinimalEnclosingCircle
Computes the minimal enclosing circle of a list of points.
Public methodStatic memberMinimalEnclosingCircleOptimalSlow
Computes the minimal enclosing circle of a list of points.
Public methodMirror
Mirrors the vector.
Public methodMirrored
Returns a mirrored vector.
Public methodNormalize
Normalizes the vector.
Public methodStatic memberParse
Parses an input string of "x y z" into a Cartesian
Public methodStatic memberRadec2Xyz
Converts (RA, Dec) to (x, y, z).
Public methodSame
Determines whether two unit vectors are identical.
Public methodScale
Multiplies the coordinates by the specified amount.
Public methodScaled
Returns a vector that is scaled by the specified amount.
Public methodSet(Double, Double)
Sets the vector to point from angular position (RA,Dec).
Public methodSet(Cartesian, Boolean)
Sets the vector from another.
Public methodSet(Double, Double, Double, Boolean)
Sets the vector from (x,y,z)
Public methodSetMiddlePoint
Sets the vector to be the sum of the specified points.
Public methodStatic memberSphericalTriangleArea
Computes the area of the triangle defined by three points connected with great circles.
Public methodSub
Subtracts another vector
Public methodTangent
Returns the tangent vectors pointing to west and north.
Public methodToString
String representation is the three coordinates: x y z
(Overrides ValueType..::..ToString()()()().)
Public methodStatic memberTripleProduct
Computes the triple product of three vectors.
Public methodStatic memberXyz2Radec
Converts normalized (x, y, z) coordinates to (RA, Dec) angles.
Public methodStatic memberXyz2RadecRadian
Converts normalized (x, y, z) coordinates to (RA, Dec) angles.

Operators

  NameDescription
Public operatorStatic memberEquality
Determines whether two vectors are the same.
Public operatorStatic memberInequality
Determines whether two vectors are different.

Fields

  NameDescription
Public fieldStatic memberNaN
Is a vector of NaN coordinates.
Public fieldStatic memberRevision
Revision from CVS
Public fieldStatic memberXaxis
Is the unit vector of the X axis: (1,0,0).
Public fieldStatic memberYaxis
Is the unit vector of the Y axis: (0,1,0).
Public fieldStatic memberZaxis
Is the unit vector of the Z axis: (0,0,1).

Properties

  NameDescription
Public propertyDec
Gets the angular coordinate Dec, which is computed on the fly.
Public propertyNorm
Gets the length of the vector.
Public propertyNorm2
Gets the square of the length of the vector.
Public propertyRA
Gets the angular coordinate RA, which is computed on the fly.
Public propertyX
Gets or sets the X coordinate of the vector.
Public propertyY
Gets or sets the Y coordinate of the vector.
Public propertyZ
Gets or sets the Z coordinate of the vector.

See Also