Draft

THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!

SDL_PointInFRect

Use this function to check if a point resides inside a rectangle.

Syntax

SDL_bool SDL_PointInFRect(const SDL_FPoint* p,
                         const SDL_FRect*  r)

Function Parameters

p

an SDL_FPoint which is the point

r

an SDL_FRect which is the rectangle

Return Value

Returns SDL_TRUE if point resides inside rectangle or SDL_FALSE if not.

Remarks

Both p and r must not be NULL.

Version

This function is available since SDL 2.0.4.


CategoryAPI, CategoryRect, CategoryDraft