Scenic.Math.Vector2.clamp

You're seeing just the function clamp, go back to Scenic.Math.Vector2 module for more information.

Specs

Clamp a vector to the space between two other vectors.

Parameters:

  • vector2 - the vector to be clamped
  • min - the vector defining the minimum boundary
  • max - the vector defining the maximum boundary

Returns: A vector derived from the space between two other vectors