Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches

◆ contains()

template<typename T >
bool Flint::Rect< T >::contains ( const Vec2< T > & point) const
inline

Test whether point lies inside the rectangle (half-open interval).

Parameters
pointPoint to test.
Returns
true if the point is inside [position, position+size).

Definition at line 146 of file types.h.