Function FRect.pointInRect

Wraps SDL_PointInFRect (from SDL 2.0.22) which sees whether the coordinate of a dsdl2.FPoint is inside the dsdl2.FRect

bool pointInRect (
  FPoint point
) @trusted const;

Parameters

NameDescription
point the dsdl2.FPoint to check its collision of with the dsdl2.FRect instance

Returns

true if it is within, otherwise false