PtSurfaceTestPoint()

Test whether or not a point is inside a control surface

Synopsis:

int PtSurfaceTestPoint( PtSurface_t const *surface,
                        PhPoint_t const *point );

Library:

ph

Description:

This function determines whether or not the given point is inside the control surface described by the structure pointed to by surface.

Returns:

A nonzero value if the point is inside the control surface, or zero if it isn't.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhPoint_t, PtSurfaceCalcBoundingBox(), PtSurfaceHit(), PtSurfaceRect()

Control Surfaces chapter of the Photon Programmer's Guide