Posture Class

The position and rotation.

C#
public sealed class Posture
Inheritance
Posture

Constructors

Posture(Position, Matrix33)

Initializes a new instance of the Posture class.

Properties

Identity

Gets the identity posture, whose position and rotation are Position.Origin and Matrix33.Identity.

Position

Gets the position.

Rotation

Gets the rotation.

Methods

FromLocalToParent(Position)

Translates the specified local position in this coordinate system into the position in the parent coordinate system.

FromParentToLocal(Position)

Translates the specified position in the parent coordinate system into the local position in this coordinate system.

Equals(object) (Inherited from object)
GetHashCode() (Inherited from object)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)
ToString() (Inherited from object)

Constructors Detail

Posture(Position, Matrix33)

Initializes a new instance of the Posture class.

C#
public Posture(Position position, Matrix33 rotation)

Parameters

position
Position

The position in the parent coordinate system, which represents the origin of this coordinate system.

rotation
Matrix33

The rotation in the parent coordinate system, which represents the three axes of this coordinate system. It must be a rotation matrix.

Properties Detail

Identity

Gets the identity posture, whose position and rotation are Position.Origin and Matrix33.Identity.

C#
public static Posture Identity { get; }

Property Value

Position

Gets the position.

C#
public Position Position { get; }

Property Value

Rotation

Gets the rotation.

C#
public Matrix33 Rotation { get; }

Property Value

Methods Detail

FromLocalToParent(Position)

Translates the specified local position in this coordinate system into the position in the parent coordinate system.

C#
public Position FromLocalToParent(Position localPosition)

Parameters

localPosition
Position

The local position.

Returns

The position in the parent coordinate system.

FromParentToLocal(Position)

Translates the specified position in the parent coordinate system into the local position in this coordinate system.

C#
public Position FromParentToLocal(Position parentPosition)

Parameters

parentPosition
Position

The position in the parent coordinate system.

Returns

The local position.