| iMatix home page | << | < | > | >> |
![]() Version 1.91 |
#include "sflmath.h" int point_in_rect (const FPOINT *point, const FPOINT *coords)
Checks if the requested FPOINT is within the specified rectangle. Returns TRUE or FALSE appropriately.
{ return ((point-> x >= coords [0].x && point-> x <= coords [1].x) && (point-> y >= coords [0].y && point-> y <= coords [1].y)); }
| << | < | > | >> |
![]() |