formZ SDK | 5.0 API Reference | System | Math
Description
Finds the angle of a 2d line segment (defined by it's start and end points) in 2d space. The angle is measured from the positive x axis (3 o'clock position) with a positive rotation defined as counter-clockwise. The angle is returned in radians.
Plugin Prototype
fzrt_error_td fz_math_2d_angle_of_line_seg(
fz_xy_td * | line_start, |
fz_xy_td * | line_end, |
double * | angle ) |
Parameters
line_start [Input]
start point of line segment
line_end [Input]
end point of line segment
angle [Result]
angle of the line segment
Returns
Error codes
Availability
5.0.0.0
Example Files
Function Set
Defined in