formZ SDK | 5.0 API Reference | System | Math

# fz_math_3d_is_pt_on_line

Description

Given a 3d line segment (defined by it's start and end points) and a 3d point, determines whether the point is on that line.
The line is assumed to extend infinitely.

Plugin Prototype

fzrt_boolean fz_math_3d_is_pt_on_line(

fz_xyz_td * | line_start,
fz_xyz_td * | line_end,
fz_xyz_td * | pt )

Parameters

line_start [Input]

start point of 3d line segment

line_end [Input]

end point of 3dline segment

pt [Input]

3d point

Returns

TRUE if point is on the line (within a tolerance), FALSE otherwise

Availability

5.0.0.0

Example Files

util_math_3d.fsl

See Also

fz_math_2d_is_pt_on_line_equ

Function Set

fz_math_fset

Defined in

fz_math_api.h