scale

fun scale(sx: Float, sy: Float, sz: Float): Matrix4

Generates a scaling matrix given x, y, and z scale factors.

Return

The scaling matrix as a Matrix4.

Parameters

sx

The x scale factor.

sy

The y scale factor.

sz

The z scale factor.


fun scale(scale: Float): Matrix4

Generates a uniform scaling matrix given a single scale factor.

Return

The scaling matrix as a Matrix4.

Parameters

scale

The uniform scale factor.