formZ SDK | 5.0 API Reference | System | Math

# fz_math_3d_equ_from_3_pts

Description

Calculates the equation of the plane defined by the three 3d points. The normal direction of the plane is derived from the right hand rule of vectors p2p1 and p2p3 (i.e. p2p1 x p2p3 = norm dir of plane).

Plugin Prototype

fzrt_error_td fz_math_3d_equ_from_3_pts(

fz_xyz_td * | p1,
fz_xyz_td * | p2,
fz_xyz_td * | p3,
fz_plane_equ_td * | equ )

Parameters

p1 [Input]

plane 3d point 1

p2 [Input]

plane 3d point 2

p3 [Input]

plane 3d point 3

equ [Result]

plane equation

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_3d.fsl

Function Set

fz_math_fset

Defined in

fz_math_api.h