Class TransformHelpers
Helper functions to manipulate and decompose transformation matrices.
Namespace: Unity.Transforms
Assembly: Unity.Transforms.dll
Syntax
public static class TransformHelpers
Methods
Name | Description |
---|---|
Back(in float4x4) | Computes the "back" direction in a transformation matrix's reference frame. |
Compute |
Synchronously compute a local-to-world transformation matrix for an entity, using the current values of LocalTransform and PostTransformMatrix for the target entity and its hierarchy ancestors. |
Down(in float4x4) | Computes the "down" direction in a transformation matrix's reference frame. |
Forward(in float4x4) | Computes the "forward" direction in a transformation matrix's reference frame. |
Inverse |
Transforms a 3D direction by the inverse of a 4x4 transformation matrix. |
Inverse |
Transforms a 3D point by the inverse of a 4x4 transformation matrix. |
Inverse |
Transforms a 3D rotation by the inverse of a 4x4 transformation matrix. |
Left(in float4x4) | Computes the "left" direction in a transformation matrix's reference frame. |
Look |
Computes a rotation so that "forward" points to the target. |
Right(in float4x4) | Computes the "right" direction in a transformation matrix's reference frame. |
Rotation(in float4x4) | Extracts the rotation from a transformation matrix |
Scale(in float4x4) | Extracts the scale from a transformation matrix |
Transform |
Transforms a 3D direction by a 4x4 transformation matrix. |
Transform |
Transforms a 3D point by a 4x4 transformation matrix. |
Transform |
Transforms a 3D rotation by a 4x4 transformation matrix. |
Translation(in float4x4) | Extracts the translation from a transformation matrix |
Up(in float4x4) | Computes the "up" direction in a transformation matrix's reference frame. |