Scenic.Math.Vector2.in_bounds-question-mark
You're seeing just the function
in_bounds-question-mark
, go back to Scenic.Math.Vector2 module for more information.
Specs
in_bounds?(vector :: Scenic.Math.vector_2(), bounds :: Scenic.Math.vector_2()) :: boolean()
Determine if a vector is in the bounds (or clamp space) between two other vectors.
Parameters:
vector2
- the vector to be testedbounds
- a vector defining the boundary
Returns: true or false
Specs
in_bounds?( vector :: Scenic.Math.vector_2(), min :: Scenic.Math.vector_2(), max :: Scenic.Math.vector_2() ) :: boolean()
Determine if a vector is in the bounds (or clamp space) between two other vectors.
Parameters:
vector2
- the vector to be testedmin
- the vector defining the minimum boundarymax
- the vector defining the maximum boundary
Returns: A vector derived from the space between two other vectors