Constructor AffineTransform
AffineTransform(float3, quaternion)
Constructs an AffineTransform from a translation represented by a float3 vector and rotation represented by a unit quaternion.
Declaration
public AffineTransform(float3 translation, quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
float3 | translation | The translation vector. |
quaternion | rotation | The rotation quaternion. |
AffineTransform(float3, quaternion, float3)
Constructs an AffineTransform from a translation represented by a float3 vector, rotation represented by a unit quaternion and scale represented by a float3 vector.
Declaration
public AffineTransform(float3 translation, quaternion rotation, float3 scale)
Parameters
Type | Name | Description |
---|---|---|
float3 | translation | The translation vector. |
quaternion | rotation | The rotation quaternion. |
float3 | scale | The scale vector. |
AffineTransform(float3, float3x3)
Constructs an AffineTransform from a translation represented by float3 vector and a float3x3 matrix representing both rotation and scale.
Declaration
public AffineTransform(float3 translation, float3x3 rotationScale)
Parameters
Type | Name | Description |
---|---|---|
float3 | translation | The translation vector. |
float3x3 | rotationScale | The rotation and scale matrix. |
AffineTransform(float3x3)
Constructs an AffineTransform from float3x3 matrix representating both rotation and scale.
Declaration
public AffineTransform(float3x3 rotationScale)
Parameters
Type | Name | Description |
---|---|---|
float3x3 | rotationScale | The rotation and scale matrix. |
AffineTransform(RigidTransform)
Constructs an AffineTransform from a RigidTransform.
Declaration
public AffineTransform(RigidTransform rigid)
Parameters
Type | Name | Description |
---|---|---|
RigidTransform | rigid | The RigidTransform. |
AffineTransform(float3x4)
Constructs an AffineTransform from a float3x4 matrix.
Declaration
public AffineTransform(float3x4 m)
Parameters
Type | Name | Description |
---|---|---|
float3x4 | m | The float3x4 matrix. |
AffineTransform(float4x4)
Constructs an AffineTransform from a float4x4 matrix.
Declaration
public AffineTransform(float4x4 m)
Parameters
Type | Name | Description |
---|---|---|
float4x4 | m | The float4x4 matrix. |