Transform¶
Category: Built-In Types
Brief Description¶
3D Transformation.
Member Functions¶
Transform ( Vector3 x_axis, Vector3 y_axis, Vector3 z_axis, Vector3 origin ) |
|
Transform ( Matrix32 from ) |
|
Transform ( Quat from ) |
|
Transform ( Matrix3 from ) |
|
affine_inverse ( ) |
|
inverse ( ) |
|
looking_at ( Vector3 target, Vector3 up ) |
|
orthonormalized ( ) |
|
translated ( Vector3 ofs ) |
|
var |
xform ( var v ) |
var |
xform_inv ( var v ) |
Member Variables¶
Description¶
Transform is used to store transformations, including translations. It consists of a Matrix3 “basis” and Vector3 “origin”. Transform is used to represent transformations of any object in space. It is similar to a 4x3 matrix.
Member Function Description¶
Construct the Transform from four Vector3. Each axis creates the basis.
Construct the Transform from a Matrix3 and Vector3.
Construct the Transform from a Matrix32.
Construct the Transform from a Quat. The origin will be Vector3(0, 0, 0)
Construct the Transform from a Matrix3. The origin will be Vector3(0, 0, 0)
Transform affine_inverse ( )
Returns the inverse of the transfrom, even if the transform has scale or the axis vectors are not orthogonal.
Transform inverse ( )
Returns the inverse of the transform.
Rotate the transform around the up vector to face the target.
Transform orthonormalized ( )
Returns a transfrom with the basis orthogonal (90 degrees), and normalized axis vectors.
Rotate the transform locally.
Scale the transform locally.
Translate the transform locally.
var xform ( var v )
Transforms vector “v” by this transform.
var xform_inv ( var v )
Inverse-transforms vector “v” by this transform.