Struct Math.ScaledMTransform
A transform in matrix format that includes scale.
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public struct Math.ScaledMTransformConstructors
ScaledMTransform(RigidTransform, float)
Constructor.
Declaration
public ScaledMTransform(RigidTransform transform, float uniformScale)Parameters
| Type | Name | Description | 
|---|---|---|
| RigidTransform | transform | The transform. | 
| float | uniformScale | The uniform scale. | 
ScaledMTransform(MTransform, float)
Constructor.
Declaration
public ScaledMTransform(Math.MTransform transform, float uniformScale)Parameters
| Type | Name | Description | 
|---|---|---|
| Math.MTransform | transform | The transform. | 
| float | uniformScale | The uniform scale. | 
Fields
Transform
The transform.
Declaration
public Math.MTransform TransformField Value
| Type | Description | 
|---|---|
| Math.MTransform | 
Properties
Identity
Gets the identity.
Declaration
public static Math.ScaledMTransform Identity { get; }Property Value
| Type | Description | 
|---|---|
| Math.ScaledMTransform | The identity. | 
InverseRotation
Gets the inverse rotation.
Declaration
public 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 | 
|---|---|
| float | The scale. | 
Translation
Gets or sets the translation.
Declaration
public float3 Translation { get; set; }Property Value
| Type | Description | 
|---|---|
| float3 | The translation. | 
Methods
Mul(ScaledMTransform, 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. |