Scenic.Math.Vector2.clamp
You're seeing just the function
clamp
, go back to Scenic.Math.Vector2 module for more information.
Specs
clamp( vector :: Scenic.Math.vector_2(), min :: Scenic.Math.vector_2(), max :: Scenic.Math.vector_2() ) :: Scenic.Math.vector_2()
Clamp a vector to the space between two other vectors.
Parameters:
vector2
- the vector to be clampedmin
- the vector defining the minimum boundarymax
- the vector defining the maximum boundary
Returns: A vector derived from the space between two other vectors