Method Scale
Scale(in float4x4)
Extracts the scale from a transformation matrix
Declaration
public static float3 Scale(this in float4x4 m)
Parameters
Type | Name | Description |
---|---|---|
float4x4 | m | A transformation matrix |
Returns
Type | Description |
---|---|
float3 | A vector containing the scale applied by the provided transformation matrix. |
Remarks
This method assumes that m
is an affine transformation matrix without shear.