formZ SDK | 5.0 API Reference | System | Math

# fz_math_2d_dist_pt_line_equ

Description

Calculates the perpendicular distance from a 2d point to a 2d line equation (defined by it's slope and offset).

Plugin Prototype

fzrt_error_td fz_math_2d_dist_pt_line_equ(

double | line_a,
double | line_c,
fz_xy_td * | pt,
double * | dist )

Parameters

line_a [Input]

slope of 2d line equation

line_c [Input]

offset of 2d line equation

pt [Input]

2d point

dist [Result]

distance from point to line

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_2d.fsl

See Also

fz_math_2d_dist_pt_line_seg

Function Set

fz_math_fset

Defined in

fz_math_api.h