formZ SDK | 5.0 API Reference | System | Math
Description
Given a 2d point and a simple polygon (defined by a number of connected points)
checks whether the point is inside or outside the polygon.
npts indicates how many points are in the polygon, as passed in poly_pts.
Note : this is a fast test and does not determine whether the
point is on the polygon boundary.
Plugin Prototype
fzrt_boolean fz_math_2d_is_pt_in_polygon(
fz_xy_td * | pt, |
fz_xy_td * | poly_pts, |
fzrt_int | npts ) |
Parameters
pt [Input]
2d point
poly_pts [Input]
polygon points array
npts [Input]
number of points in the polygon
Returns
TRUE if inside, FALSE if outside
Availability
5.0.0.0
Example Files
See Also
,, fz_math_2d_area_of_polygon,
Function Set
Defined in