Method Scale
Scale(Single)
Returns a float4x4 scale matrix given 3 axis scales.
Declaration
public static float4x4 Scale(float s)
Parameters
Type | Name | Description |
---|---|---|
Single | s | The uniform scaling factor. |
Returns
Type | Description |
---|---|
float4x4 | The float4x4 matrix that represents a uniform scale. |
Scale(Single, Single, Single)
Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales.
Declaration
public static float4x4 Scale(float x, float y, float z)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The x-axis scaling factor. |
Single | y | The y-axis scaling factor. |
Single | z | The z-axis scaling factor. |
Returns
Type | Description |
---|---|
float4x4 | The float4x4 matrix that represents a non-uniform scale. |
Scale(float3)
Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales.
Declaration
public static float4x4 Scale(float3 scales)
Parameters
Type | Name | Description |
---|---|---|
float3 | scales | The vector containing scale factors for each axis. |
Returns
Type | Description |
---|---|
float4x4 | The float4x4 matrix that represents a non-uniform scale. |