scale

fun scale(s: Double, target: TransformTarget = TransformTarget.MODEL)

Apply a uniform scale to the model matrix

Parameters

s

the scaling factor

fun scale(x: Double, y: Double, target: TransformTarget = TransformTarget.MODEL)

Applies non-uniform scale to the model matrix

Parameters

x

the scaling factor for the x-axis

y

the scaling factor for the y-axis

fun scale(x: Double, y: Double, z: Double, target: TransformTarget = TransformTarget.MODEL)

Applies non-uniform scale to the model matrix

See also

Parameters

x

the scaling factor for the x-axis

y

the scaling factor for the y-axis

z

the scaling factor for the y-axis