divide

fun divide(x: Double, y: Double, z: Double): Vec3d

Divides this vector 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: Vec3d): Vec3d
fun divide(other: Vec3i): Vec3d

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

Return

the resulting vector

Parameters

other

the vector to divide by


fun divide(factor: Double): Vec3d

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

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

Return

the resulting vector

Parameters

factor

the factor to divide by