scale

Increases the matrix by a specified factor along the specified axes.

@safe nothrow pure
float[4][4]
scale
(
float[4][4] mat
,
float x
,
float y
,
float z = 1.0f
)

Parameters

mat float[4][4]

Matrix to be scaled.

x float

X-axis scaling factor.

y float

Y-axis scaling factor.

z float

Z-axis scaling factor.

Return Value

Type: float[4][4]

Scaling matrix.

See Also

$(HREF https://en.wikipedia.org/wiki/Scaling_(geometry), Scaling (geometry) - Wikipedia.)

$(SCALE_IMG)

Meta