clampPoint method

Vector3 clampPoint(
  1. dynamic point,
  2. Vector3 target
)

Implementation

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