Struct Math.MTransform
A transform in matrix format
Implements
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public struct Math.MTransform : IEquatable<Math.MTransform>Constructors
MTransform(RigidTransform)
Constructor.
Declaration
public MTransform(RigidTransform transform)Parameters
| Type | Name | Description | 
|---|---|---|
| RigidTransform | transform | The transform. | 
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. | 
Fields
Rotation
The rotation.
Declaration
public float3x3 RotationField Value
| Type | Description | 
|---|---|
| float3x3 | 
Translation
The translation.
Declaration
public float3 TranslationField Value
| Type | Description | 
|---|---|
| float3 | 
Properties
Identity
Gets the identity.
Declaration
public static Math.MTransform Identity { get; }Property Value
| Type | Description | 
|---|---|
| Math.MTransform | The identity. | 
InverseRotation
Gets the inverse rotation.
Declaration
public float3x3 InverseRotation { get; }Property Value
| Type | Description | 
|---|---|
| float3x3 | The inverse rotation. | 
Methods
Equals(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 | 
|---|---|
| bool | True if the objects are considered equal, false if they are not. |