Struct Math.MTransform
A transform in matrix format
Inherited Members
Namespace: Unity.Physics
Syntax
public struct MTransform : IEquatable<Math.MTransform>
Constructors
MTransform(float3x3, float3)
Constructor.
Declaration
public MTransform(float3x3 rotation, float3 translation)
Parameters
Type | Name | Description |
---|---|---|
float3x3 | rotation | The rotation. |
float3 | translation | The translation. |
MTransform(quaternion, float3)
Constructor.
Declaration
public MTransform(quaternion rotation, float3 translation)
Parameters
Type | Name | Description |
---|---|---|
quaternion | rotation | The rotation. |
float3 | translation | The translation. |
MTransform(RigidTransform)
Constructor.
Declaration
public MTransform(RigidTransform transform)
Parameters
Type | Name | Description |
---|---|---|
RigidTransform | transform | The transform. |
Fields
Rotation
The rotation.
Declaration
public float3x3 Rotation
Field Value
Type | Description |
---|---|
float3x3 |
Translation
The translation.
Declaration
public float3 Translation
Field Value
Type | Description |
---|---|
float3 |
Properties
Identity
Gets the identity.
Declaration
public static readonly Math.MTransform Identity { get; }
Property Value
Type | Description |
---|---|
Math.MTransform | The identity. |
InverseRotation
Gets the inverse rotation.
Declaration
public readonly float3x3 InverseRotation { get; }
Property Value
Type | Description |
---|---|
float3x3 | The inverse rotation. |
Methods
Equals(Math.MTransform)
Tests if this MTransform is considered equal to another.
Declaration
public bool Equals(Math.MTransform other)
Parameters
Type | Name | Description |
---|---|---|
Math.MTransform | other | The m transform to compare to this object. |
Returns
Type | Description |
---|---|
Boolean | True if the objects are considered equal, false if they are not. |