subtract

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

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

Return

the resulting vector

Parameters

x

the X amount to subtract

y

the Y amount to subtract

z

the Z amount to subtract


fun subtract(amount: Double): Vec3d

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

Return

the resulting vector

Parameters

amount

the amount to subtract


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

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

Return

the resulting vector

Parameters

other

the vector to subtract