formZ SDK | 5.0 API Reference | System | Math
Description
Calculates the area of a triangle defined by three 2d points.
The area is positive if the three points are oriented clockwise
and negative if they are oriented counterclockwise.
Plugin Prototype
#define FZ_MATH_2D_AREA_OF_3_PTS( _p1, _p2, _p3)
Parameters
fz_xy_td * _p1 [Input]
2d point 1 of triangle definition.
fz_xy_td * _p2 [Input]
2d point 2 of triangle definition.
fz_xy_td * _p3 [Input]
2d point 3 of triangle definition.
Returns
area of triangle
Return Type: double
Availability
5.0.0.0
See Also
FZ_MATH_2D_VEC_LEN_SQUARED, FZ_MATH_2D_DIST_PT_PT_SQUARED, FZ_MATH_2D_PT_PT_DIST, FZ_MATH_2D_IS_EQUAL_PTS, FZ_MATH_2D_DOT_PROD, FZ_MATH_2D_CREATE_VEC, FZ_MATH_2D_SCALE_XY, FZ_MATH_2D_ADD_XY, FZ_MATH_2D_MID_PT, FZ_MATH_2D_INTERP_X, FZ_MATH_2D_INTERP_Y, FZ_MATH_2D_PT_SIDE_OF_LINE,
Defined in