Click or drag to resize

Cartesian Structure

A set of rectilinear 3-dimensional coordinates.

Namespace:  AGI.Foundation.Coordinates
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public struct Cartesian : IEquatable<Cartesian>, 
	IEquatableEpsilon<Cartesian>

The Cartesian type exposes the following members.

Constructors
  NameDescription
Public methodCartesian(AzimuthElevationRange)
Initializes a set of Cartesian coordinates from the provided set of AzimuthElevationRange coordinates.
Public methodCartesian(Cylindrical)
Initializes a set of Cartesian coordinates from the provided set of Cylindrical coordinates.
Public methodCartesian(Double)
Initializes a set of Cartesian coordinates from the first 3 consecutive elements in the provided array.
Public methodCartesian(LongitudeLatitudeRadius)
Initializes a set of Cartesian coordinates from the provided set of LongitudeLatitudeRadius coordinates.
Public methodCartesian(Pyramidal)
Initializes a set of Cartesian coordinates from the provided set of Pyramidal coordinates.
Public methodCartesian(Spherical)
Initializes a set of Cartesian coordinates from the provided set of Spherical coordinates.
Public methodCartesian(Double, Int32)
Initializes a set of Cartesian coordinates from 3 consecutive elements in the provided array.
Public methodCartesian(Double, Double, Double)
Initializes a set of Cartesian coordinates from the provided values.
Top
Properties
  NameDescription
Public propertyHasZeroMagnitude
Gets a value indicating whether the Magnitude of this instance is zero.
Public propertyIsUndefined
Gets a value indicating whether or not any of the coordinates for this instance have the value NaN.
Public propertyItem
Gets the value of the specified element with index of 0, 1, and 2 corresponding to the coordinates X, Y, and Z.
Public propertyLength
Gets the number of elements in this set of coordinates.
Public propertyMagnitude
Gets the magnitude of this instance.
Public propertyMagnitudeSquared
Gets the square of the Magnitude of this instance.
Public propertyMostOrthogonalAxis
Gets the axis which is most orthogonal to this instance.
Public propertyMostParallelAxis
Gets the axis which is most parallel to this instance.
Public propertyStatic memberUndefined
Gets a set of Cartesian coordinates with values of NaN.
Public propertyX
Gets the linear coordinate along the positive x-axis.
Public propertyY
Gets the linear coordinate along the positive y-axis.
Public propertyZ
Gets the linear coordinate along the positive z-axis.
Public propertyStatic memberZero
Gets a set of Cartesian coordinates with values of zero.
Top
Methods
  NameDescription
Public methodAdd
Adds the specified set of Cartesian coordinates to this instance.
Public methodStatic memberConvertMotion
Converts the motion given in terms of a set of LongitudeLatitudeRadius coordinates to motion of the corresponding set of Cartesian coordinates.
Public methodCross
Forms the cross product of the specified set of Cartesian coordinates with this instance.
Public methodDivide
Divides this instance by a scalar.
Public methodDot
Forms the dot product of the specified set of Cartesian coordinates with this instance.
Public methodEquals(Cartesian)
Indicates whether another instance of this type is exactly equal to this instance.
Public methodEquals(Object)
Indicates whether another object is exactly equal to this instance.
(Overrides ValueTypeEquals(Object).)
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 methodInvert
Inverts this instance.
Public methodMultiply(Double)
Multiplies this instance by a scalar.
Public methodMultiply(Matrix3By3)
Multiplies this instance (treated as a row vector) by a Matrix3By3.
Public methodNormalize
Forms a set of UnitCartesian coordinates from this instance.
Public methodNormalize(Double)
Forms a set of UnitCartesian coordinates from this instance and returns the Magnitude of the original instance in the provided parameter.
Public methodRotate(ElementaryRotation)
Produces a set of Cartesian coordinates representing this instance which results from rotating the original axes used to represent this instance by the provided ElementaryRotation rotation. This type of rotation is sometimes referred to as an "alias rotation".
Public methodRotate(Matrix3By3)
Produces a set of Cartesian coordinates representing this instance which results from rotating the original axes used to represent this instance by the provided Matrix3By3 rotation. This type of rotation is sometimes referred to as an "alias rotation".
Public methodRotate(UnitQuaternion)
Produces a set of Cartesian coordinates representing this instance which results from rotating the original axes used to represent this instance by the provided UnitQuaternion rotation. This type of rotation is sometimes referred to as an "alias rotation".
Public methodSubtract
Subtracts the specified set of Cartesian coordinates from this instance.
Public methodToString
Returns the string representation of the value of this instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds a specified set of Cartesian coordinates to another specified set of Cartesian coordinates.
Public operatorStatic memberDivision
Divides a specified set of Cartesian coordinates by a scalar.
Public operatorStatic memberEquality
Returns if the two instances are exactly equal.
Public operatorStatic member(UnitCartesian to Cartesian)
Converts a set of UnitCartesian coordinates to a set of Cartesian coordinates.
Public operatorStatic memberInequality
Returns if the two instances are not exactly equal.
Public operatorStatic memberMultiply(Cartesian, Matrix3By3)
Multiplies a specified set of Cartesian coordinates by a Matrix3By3.
Public operatorStatic memberMultiply(Cartesian, Double)
Multiplies a specified set of Cartesian coordinates by a scalar.
Public operatorStatic memberMultiply(Double, Cartesian)
Multiplies a scalar by a specified set of Cartesian coordinates.
Public operatorStatic memberSubtraction
Subtracts a specified set of Cartesian coordinates from another specified set of Cartesian coordinates.
Public operatorStatic memberUnaryNegation
Negates the specified set of Cartesian coordinates, yielding a new set of Cartesian coordinates.
Top
Remarks
The corresponding 2-dimensional coordinates are Rectangular coordinates.
See Also