| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 1.91

 

point_in_rect

#include "sflmath.h"
int
point_in_rect (const FPOINT *point, const FPOINT *coords)

Synopsis

Checks if the requested FPOINT is within the specified rectangle. Returns TRUE or FALSE appropriately.

Source Code - (sflmath.c)

{
    return ((point-> x >= coords [0].x && point-> x <= coords [1].x)
         && (point-> y >= coords [0].y && point-> y <= coords [1].y));
}

| << | < | > | >> iMatix Copyright © 1996-98 iMatix