is_inside_bounds

is_inside_bounds#

is_inside_bounds(
point: float | VectorLikeFloat,
bounds: VectorLikeFloat,
) → bool[source]#

Check if a point is inside a set of bounds.

This is implemented through recursion so that this is N-dimensional.

Parameters:
pointfloat | VectorLikeFloat

Three item Cartesian point (that is, [x, y, z]).

boundsVectorLikeFloat

Six item bounds in the form of (x_min, x_max, y_min, y_max, z_min, z_max).

Returns:
bool

True when point is inside bounds.