add

fun add(x: Double, y: Double, z: Double): Position

Adds the given x, y, and z values to this position and returns the result.

Return

the resulting position

Parameters

x

the X amount to add

y

the Y amount to add

z

the Z amount to add


fun add(amount: Double): Position

Adds the given amount to this position and returns the result.

Return

the resulting position

Parameters

amount

the amount to add


fun add(other: Position): Position

Adds the given other position to this position and returns the result.

Only the coordinates of the other position will be added to this position, not the rotation.

Return

the resulting position

Parameters

other

the position to add


fun add(other: Vec3d): Position
fun add(other: Vec3i): Position

Adds the given other vector to this position and returns the result.

Return

the resulting position

Parameters

other

the vector to add