subtract

Subtracts the given x, y, and z values from this vector and returns the result.

Return

the resulting position

Parameters

x

the X amount to subtract

y

the Y amount to subtract

z

the Z amount to subtract


fun subtract(amount: Double): Position

Subtracts the given amount from this position and returns the result.

Return

the resulting position

Parameters

amount

the amount to subtract


Subtracts the given other position from this position and returns the result.

Only the coordinates of the other position will be subtracted from this position, not the rotation.

Return

the resulting position

Parameters

other

the position to subtract


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

Subtracts the given other vector from this position and returns the result.

Return

the resulting position

Parameters

other

the vector to subtract