The Transform class represents a 3D SRT (scaling/rotation/translation) matrix.
Generally this class is used to represent a world matrix and has functions to conviently set
each component, compute the SRT matrix, and parent-child transform combination.
Declaration Syntax
C# |
public sealed class Transform : ISavable
Members
All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
Transform()()()() |
Creates a new instance of a Transform with unit scaling, no translation, and an identity rotation quaternion.
|
|
Transform(Transform) |
Creates a new instance of a Transform from the components of the supplied prototype.
|
|
Transform(Vector3, Quaternion, Vector3) |
Creates a new instance of a Transform with the supplied components.
|
|
CombineWithParent(Transform) |
Combines this transform with a transform that represents its "parent". This is a convience method
used by the engine's scene graph primarily.
|
|
Equals(Object) |
(Inherited from Object.) |
|
GetHashCode()()()() |
Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetRotationVector(Int32) |
Returns the calculated row vector of the 3x3 rotation matrix (represented by the quaternion).
Row 0 is Right, row 1 is Up, and row 2 is Forward.
|
|
GetType()()()() |
Gets the Type of the current instance. (Inherited from Object.) |
|
InterpolateTransforms(Transform, Transform, Single) |
Interpolates between two transforms, setting the result to this transform. Slerp is applied
to the rotations and Lerp to the translation/scale.
|
|
Matrix |
Gets the computed SRT matrix.
|
|
Read(ISavableReader) |
Deserializes the transform.
|
|
Rotation |
Gets or sets the rotation quaternion.
|
|
Scale |
Gets or sets the scaling vector.
|
|
Set(Transform) |
Sets the transform with the store from the supplied transform.
|
|
Set(Vector3, Quaternion, Vector3) |
Sets the transform with the supplied components.
|
|
SetIdentity()()()() |
Sets the transform to its identity state - scaling vector is all 1's, translation is all 0's, and
the rotation quaternion is the identity.
|
|
SetRotation(Matrix) |
Sets the rotation quaternion from a rotation matrix. The matrix *must* represent a rotation!
This method does NOT check if if the matrix is a valid rotation matrix.
|
|
SetScale(Single, Single, Single) |
Sets the transform's scaling vector with the supplied scaling factors for each axis.
|
|
SetScale(Single) |
Sets the transform's scaling vector with a single uniform index.
|
|
SetTranslation(Single, Single, Single) |
Sets the transform's translation vector from the supplied coordinates.
|
|
ToString()()()() |
(Inherited from Object.) |
|
TransformVector(Vector3) |
Transforms the supplied vector.
|
|
TransformVector(Vector3%, Vector3%) |
Transforms the supplied vector.
|
|
Translation |
Gets or sets the translation vector.
|
|
Write(ISavableWriter) |
Serializes the transform.
|
Inheritance Hierarchy
Object | |
Transform |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)