CoordinateSystem Class
Represents the nested coordinate system.
public sealed class CoordinateSystem
- Inheritance
-
Coordinate
System
Constructors
Coordinate |
Initializes a new instance of the CoordinateSystem class. |
Coordinate |
Initializes a new instance of the CoordinateSystem class, which parent is World coordinate system. |
Properties
World |
Gets the world coordinate system. |
Parent |
Gets the parent coordinate system. |
Posture |
Gets the posture against the parent coordinate system. |
Methods
Translate |
Translates the local position in |
Translate |
Translates the world position in the world coordinate system into
the local position in |
New |
Gets new coordinate system whose parent is this one. |
Equals(object) | (Inherited from object) |
GetHashCode() | (Inherited from object) |
GetType() | (Inherited from object) |
MemberwiseClone() | (Inherited from object) |
ToString() | (Inherited from object) |
Constructors Detail
CoordinateSystem(Posture, CoordinateSystem)
Initializes a new instance of the CoordinateSystem class.
public CoordinateSystem(Posture posture, CoordinateSystem parent)
Parameters
- posture
- Posture
The posture against the parent coordinate system.
- parent
-
Coordinate
System
The parent coordinate system.
CoordinateSystem(Posture)
Initializes a new instance of the CoordinateSystem class, which parent is World coordinate system.
public CoordinateSystem(Posture posture)
Parameters
- posture
- Posture
The posture against the parent coordinate system.
Properties Detail
World
Gets the world coordinate system.
public static CoordinateSystem World { get; }
Property Value
Parent
Gets the parent coordinate system.
public CoordinateSystem Parent { get; }
Property Value
Posture
Gets the posture against the parent coordinate system.
public Posture Posture { get; }
Property Value
Methods Detail
TranslateIntoWorld(Position)
Translates the local position in this
coordinate system into
the world position in the world coordinate system.
public Position TranslateIntoWorld(Position localPosition)
Parameters
- localPosition
- Position
The local position.
Returns
The world position in the world coordinate system.
TranslateIntoLocal(Position)
Translates the world position in the world coordinate system into
the local position in this
coordinate system.
public Position TranslateIntoLocal(Position worldPosition)
Parameters
- worldPosition
- Position
The world position.
Returns
The local position in this
coordinate system.
NewChild(Posture)
Gets new coordinate system whose parent is this one.
public CoordinateSystem NewChild(Posture posture)
Parameters
- posture
- Posture
The posture against this
coordinate system.
Returns
The new coordinate system.