scale

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

Apply a uniform scale to the model matrix

Parameters

s

the scaling factor


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

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)(source)

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

z

the scaling factor for the y-axis

See also