add

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

Adds the given x, y, and z values to this vector and returns the result.

Return

the resulting vector

Parameters

x

the X amount to add

y

the Y amount to add

z

the Z amount to add


fun add(amount: Double): Vec3d

Adds the given amount to this vector and returns the result.

Return

the resulting vector

Parameters

amount

the amount to add


fun add(other: Vec3d): Vec3d
fun add(other: Vec3i): Vec3d

Adds the given other vector to this vector and returns the result.

Return

the resulting vector

Parameters

other

the vector to add