Struct Math.ScaledMTransform
A transform in matrix format that includes scale.
Inherited Members
Namespace: Unity.Physics
Syntax
public struct ScaledMTransform
Constructors
ScaledMTransform(RigidTransform, Single)
Constructor.
Declaration
public ScaledMTransform(RigidTransform transform, float uniformScale)
Parameters
Type | Name | Description |
---|---|---|
RigidTransform | transform | The transform. |
Single | uniformScale | The uniform scale. |
ScaledMTransform(Math.MTransform, Single)
Constructor.
Declaration
public ScaledMTransform(Math.MTransform transform, float uniformScale)
Parameters
Type | Name | Description |
---|---|---|
Math.MTransform | transform | The transform. |
Single | uniformScale | The uniform scale. |
Fields
Transform
The transform.
Declaration
public Math.MTransform Transform
Field Value
Type | Description |
---|---|
Math.MTransform |
Properties
Identity
Gets the identity.
Declaration
public static readonly Math.ScaledMTransform Identity { get; }
Property Value
Type | Description |
---|---|
Math.ScaledMTransform | The identity. |
InverseRotation
Gets the inverse rotation.
Declaration
public readonly float3x3 InverseRotation { get; }
Property Value
Type | Description |
---|---|
float3x3 | The inverse rotation. |
Rotation
Gets or sets the rotation.
Declaration
public float3x3 Rotation { get; set; }
Property Value
Type | Description |
---|---|
float3x3 | The rotation. |
Scale
Gets or sets the scale.
Declaration
public float Scale { get; set; }
Property Value
Type | Description |
---|---|
Single | The scale. |
Translation
Gets or sets the translation.
Declaration
public float3 Translation { get; set; }
Property Value
Type | Description |
---|---|
float3 | The translation. |
Methods
Mul(Math.ScaledMTransform, Math.MTransform)
Returns aFromC = aFromB * bFromC, where bFromC has no scale Advanced use only.
Declaration
public static Math.ScaledMTransform Mul(Math.ScaledMTransform aFromB, Math.MTransform bFromC)
Parameters
Type | Name | Description |
---|---|---|
Math.ScaledMTransform | aFromB | aFromB. |
Math.MTransform | bFromC | bFromC. |
Returns
Type | Description |
---|---|
Math.ScaledMTransform | A ScaledMTransform, aFromC. |