TRS(float3, quaternion, float3)
Returns a float4x4 matrix representing a combined scale-, rotation- and translation transform. Equivalent to mul(translationTransform, mul(rotationTransform, scaleTransform)).
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
public static float4x4 TRS(float3 translation, quaternion rotation, float3 scale)
Parameters
The translation vector.
The quaternion rotation.
The scaling factors of each axis.
Returns
Type | Description |
|---|---|
| float4x4 | The float4x4 matrix representing the translation, rotation, and scale by the inputs. |