formZ SDK | 5.0 API Reference | System | Math

fz_math_3d_project_pt_on_plane

Description

Projects a 3d point perpendicular on a plane.
Also returns the distance of the original point from the plane.

Plugin Prototype

fzrt_error_td fz_math_3d_project_pt_on_plane(

fz_xyz_td *

pt_in,

fz_plane_equ_td *

plane,

fz_xyz_td *

pt_out,

double *

dist )

Parameters

pt_in [Input]

3d point to project

plane [Input]

plane to project point on

pt_out [Result, Optional]

3d point projected onto plane

dist [Result, Optional]

distance of original point from the plane

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