clampPoint method

Vector2 clampPoint(
  1. Vector2 point,
  2. Vector2 target
)

Implementation

Vector2 clampPoint(Vector2 point, Vector2 target) {
  return target.copy(point).clamp(min, max);
}