public double distanceSquared ( Vector3d v ) { double dx = x - v . x ; double dy = y - v . y ; double dz = z - v . z ; return dx * dx + dy * dy + dz * dz ; }
Returns the squared of the Euclidean distance between this vector and vector v .