Function FRect.pointInRect

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

bool pointInRect (
  FPoint point
) @trusted const;

Parameters

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

Returns

true if it is within, otherwise false