formZ SDK | 5.0 API Reference | System | Math

fz_math_3d_dist_pt_line

Description

Calculates the perpendicular distance between a 3d point and a 3d line segment (defined by it's start and end points).

Plugin Prototype

fzrt_error_td fz_math_3d_dist_pt_line(

fz_xyz_td *

line_start,

fz_xyz_td *

line_end,

fz_xyz_td *

pt,

double *

dist )

Parameters

line_start [Input]

start point of 3d line segment

line_end [Input]

end point of 3d line segment

pt [Input]

3d point

dist [Result]

distance between line and point

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_3d.fsl

See Also

FZ_MATH_3D_DIST_PT_PLANE, fz_math_2d_dist_pt_line_seg

Function Set

fz_math_fset


Defined in

fz_math_api.h