[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.Scale

Scale Method

Scale(float)

Creates a matrix that uniformally scales along all three axis.

Declaration
public static Matrix4x4 Scale(float scale)
Parameters
Type Name Description
float scale

The uniform scale that is applied along all axis.

Returns
Type Description
Matrix4x4

The created scaling matrix.

Scale(float, float, float)

Creates a matrix that scales along the x-axis, y-axis, and y-axis.

Declaration
public static Matrix4x4 Scale(float xScale, float yScale, float zScale)
Parameters
Type Name Description
float xScale

Scaling factor that is applied along the x-axis.

float yScale

Scaling factor that is applied along the y-axis.

float zScale

Scaling factor that is applied along the z-axis.

Returns
Type Description
Matrix4x4

The created scaling matrix.

Scale(Vector3)

Creates a matrix that scales along the x-axis, y-axis, and y-axis.

Declaration
public static Matrix4x4 Scale(Vector3 scale)
Parameters
Type Name Description
Vector3 scale

Scaling factor for all three axes.

Returns
Type Description
Matrix4x4

The created scaling matrix.