divide

Divides this position by the given x, y, and z values and returns the result.

Return

the resulting vector

Parameters

x

the X amount

y

the Y amount

z

the Z amount


fun divide(other: Position): Position

Divides this position by the given other position and returns the result.

Only the coordinates of the other position will be multiplied by this position, not the rotation.

Return

the resulting position

Parameters

other

the position to divide by


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

Divides this position by the given other vector and returns the result.

Return

the resulting position

Parameters

other

the vector to divide by


fun divide(factor: Double): Position

Divides this position by the given factor and returns the result.

This is equivalent to calling divide with the same factor for each component.

Return

the resulting position

Parameters

factor

the factor to divide by