subtract

fun subtract(x: Int, y: Int, z: Int): Vec3i

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: Int): Vec3i

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

Return

the resulting vector

Parameters

amount

the amount to subtract


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

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

Return

the resulting vector

Parameters

other

the vector to subtract