formZ SDK | 5.0 API Reference | System | Math

# fz_math_3d_area_of_3_pts

Description

Calculates the area of a triangle defined by three 3d points.
The area is always positive (unlike FZ_MATH_2D_AREA_OF_3_PTS, where the area is negative if the points are ordered counterclockwise)

Plugin Prototype

double fz_math_3d_area_of_3_pts(

fz_xyz_td * | pt1,
fz_xyz_td * | pt2,
fz_xyz_td * | pt3 )

Parameters

pt1 [Input]

3d point 1

pt2 [Input]

3d point 2

pt3 [Input]

3d point 3

Returns

area of the triangle

Availability

5.0.0.0

Example Files

util_math_3d.fsl

See Also

FZ_MATH_2D_AREA_OF_3_PTS

Function Set

fz_math_fset

Defined in

fz_math_api.h