translate

fun translate(t: Vector2, target: TransformTarget = TransformTarget.MODEL)(source)

Applies a translation transformation to the specified target.

Parameters

t

The translation vector to apply.

target

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


fun translate(t: Vector3, target: TransformTarget = TransformTarget.MODEL)(source)

Applies a translation transformation to the specified target.

Parameters

t

The translation vector that specifies the direction and magnitude of the transformation.

target

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


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

Translates a point or object by the given x and y offsets.

Parameters

x

The x-axis offset by which the object is translated.

y

The y-axis offset by which the object is translated.

target

The transformation target that determines the coordinate system to apply the translation in (default is TransformTarget.MODEL).


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

Translates the target by the specified x, y, and z values.

Parameters

x

The translation value along the X-axis.

y

The translation value along the Y-axis.

z

The translation value along the Z-axis.

target

The target of the transformation. Defaults to TransformTarget.MODEL.