Function Rect.pointInRect

Wraps SDL_PointInRect which sees whether the coordinate of a dsdl2.Point is inside the dsdl2.Rect

bool pointInRect (
  Point point
) @trusted const;

Parameters

NameDescription
point the dsdl2.Point to check its collision of with the dsdl2.Rect instance

Returns

true if it is within, otherwise false