Rect.pointInRect

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

struct Rect
const @trusted
bool
pointInRect

Parameters

point Point

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

Return Value

Type: bool

true if it is within, otherwise false

Meta