formZ SDK | 5.0 API Reference | System | Math

# fz_math_2d_reflect_pt_about_line

Description

Reflects a 2d point (pt_in) about a 2d line segment (defined by it's start and end points).

Plugin Prototype

fzrt_error_td fz_math_2d_reflect_pt_about_line(

fz_xy_td * | pt_in,
fz_xy_td * | line_start,
fz_xy_td * | line_end,
fz_xy_td * | pt_out )

Parameters

pt_in [Input]

2d point to be reflected

line_start [Input]

start point of 2d line segment to reflect about

line_end [Input]

end point of 2d line segment to reflect about

pt_out [Result]

reflected 2d point

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_2d.fsl

See Also

Function Set

fz_math_fset

Defined in

fz_math_api.h