CoordinateSystem Class

Represents the nested coordinate system.

C#
public sealed class CoordinateSystem
Inheritance
CoordinateSystem

Constructors

CoordinateSystem(Posture, CoordinateSystem)

Initializes a new instance of the CoordinateSystem class.

CoordinateSystem(Posture)

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

TranslateIntoWorld(Position)

Translates the local position in this coordinate system into 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.

NewChild(Posture)

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.

C#
public CoordinateSystem(Posture posture, CoordinateSystem parent)

Parameters

posture
Posture

The posture against the parent coordinate system.

parent
CoordinateSystem

The parent coordinate system.

CoordinateSystem(Posture)

Initializes a new instance of the CoordinateSystem class, which parent is World coordinate system.

C#
public CoordinateSystem(Posture posture)

Parameters

posture
Posture

The posture against the parent coordinate system.

Properties Detail

World

Gets the world coordinate system.

C#
public static CoordinateSystem World { get; }

Property Value

Parent

Gets the parent coordinate system.

C#
public CoordinateSystem Parent { get; }

Property Value

Posture

Gets the posture against the parent coordinate system.

C#
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.

C#
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.

C#
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.

C#
public CoordinateSystem NewChild(Posture posture)

Parameters

posture
Posture

The posture against this coordinate system.

Returns

The new coordinate system.