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.
Link to this function

in_bounds?(vector, bounds)

View Source

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 tested
  • bounds - a vector defining the boundary

Returns: true or false

Link to this function

in_bounds?(vector, min, max)

View Source

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 tested
  • 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