manhattanDistanceTo method

dynamic manhattanDistanceTo(
  1. Vector3 v
)

Implementation

manhattanDistanceTo(Vector3 v) {
  return Math.abs(x - v.x) + Math.abs(y - v.y) + Math.abs(z - v.z);
}