distanceSquared

fun distanceSquared(x: Int, y: Int, z: Int): Int

Calculates the squared distance between this vector and the given x, y, and z values.

Return

the squared distance

Parameters

x

the X distance

y

the Y distance

z

the Z distance


Calculates the squared distance between this vector and the given other vector.

Return

the squared distance

Parameters

other

the other vector