distanceToPoint method

num distanceToPoint(
  1. Vector2 point
)

Implementation

num distanceToPoint(Vector2 point) {
  var clampedPoint = _vector.copy(point).clamp(min, max);
  return clampedPoint.sub(point).length();
}