dist method

num dist(
  1. PVector other
)

Implementation

num dist(PVector other) {
  return PVector(other.x - x, other.y - y).mag;
}