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