FRect.pointInRect

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

struct FRect
const @trusted
static if(sdlSupport >= SDLSupport.v2_0_22)
bool
pointInRect

Parameters

point FPoint

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

Return Value

Type: bool

true if it is within, otherwise false

Meta