Function Rect.pointInRect

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

bool pointInRect (
  Point point
) @trusted const;

Parameters

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

Returns

true if it is within, otherwise false