RigidTransform
Returns a RigidTransform constructed from a rotation represented by a unit quaternion and a translation represented by a float3 vector.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
RigidTransform(quaternion, float3)
Returns a RigidTransform constructed from a rotation represented by a unit quaternion and a translation represented by a float3 vector.
public static RigidTransform RigidTransform(quaternion rot, float3 pos)
Parameters
Returns
Type | Description |
|---|---|
| RigidTransform | The RigidTransform of the given rotation quaternion and translation vector. |
RigidTransform(float3x3, float3)
Returns a RigidTransform constructed from a rotation represented by a float3x3 rotation matrix and a translation represented by a float3 vector.
public static RigidTransform RigidTransform(float3x3 rotation, float3 translation)
Parameters
Returns
Type | Description |
|---|---|
| RigidTransform | The RigidTransform of the given rotation matrix and translation vector. |
RigidTransform(float4x4)
Returns a RigidTransform constructed from a rotation represented by a float3x3 matrix and a translation represented by a float3 vector.
public static RigidTransform RigidTransform(float4x4 transform)
Parameters
The float4x4 transformation matrix.
Returns
Type | Description |
|---|---|
| RigidTransform | The RigidTransform of the given float4x4 transformation matrix. |