manhattanDistanceTo method

double manhattanDistanceTo(
  1. Vector3 v
)

Computes the manhattan distance between this 3D vector and the given one.

Implementation

double manhattanDistanceTo(Vector3 v ) {
	final dx = x - v.x, dy = y - v.y, dz = z - v.z;
	return dx.abs() + dy.abs() + dz.abs();
}