formZ SDK | 5.0 API Reference | System | Math
Description
Finds the area for a polygon.
The polygon is defined by the points in the pts array.
npts indicates how many 2d points are in the polygon, as passed in pts.
If the polygon is defined in counterclockwise direction,
the area is negative, otherwise it is positive.
Plugin Prototype
fzrt_error_td fz_math_2d_area_of_polygon(
fz_xy_td * | pts, |
fzrt_int | npts, |
double * | area ) |
Parameters
pts [Input]
polygon points array
npts [Input]
number of 2d points in the polygon
area [Result]
area of the polygon
Returns
Error codes
Availability
5.0.0.0
Example Files
See Also
,, ,
Function Set
Defined in