scale

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

Scales the target transformation uniformly along all axes by the given scalar value.

Parameters

s

The scalar value by which to scale the transformation.

target

The target transformation to be scaled. Defaults to the MODEL transformation.


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)

Scales a transformation matrix by the specified factors along the x, y, and z axes.

Parameters

x

The scale factor along the x-axis.

y

The scale factor along the y-axis.

z

The scale factor along the z-axis.

target

The transformation target to which the scaling is applied. Defaults to TransformTarget.MODEL.