formZ SDK | 5.0 API Reference | System | Math

# fz_math_2d_is_pt_on_polygon

Description

Given a 2d point and a simple polygon (defined by a number of connected points) checks whether the point is on the boundary the polygon.
npts indicates how many points are in the polygon, as passed in poly_pts.

Plugin Prototype

fzrt_boolean fz_math_2d_is_pt_on_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 on the boundary, FALSE if not

Availability

5.0.0.0

Example Files

util_math_2d.fsl

See Also

Function Set

fz_math_fset

Defined in

fz_math_api.h