formZ SDK | 5.0 API Reference | System | Math

# fz_math_3d_angle_of_2_lines

Description

Given an angle defined by three 3d points (pt1, center, pt2), calculates the angle in radians.
center is the apex of the angle formed by the 3d vectors (center, pt1) and (center, pt2).

Plugin Prototype

fzrt_error_td fz_math_3d_angle_of_2_lines(

fz_xyz_td * | pt1,
fz_xyz_td * | center,
fz_xyz_td * | pt2,
double * | angle )

Parameters

pt1 [Input]

3d point 1

center [Input]

apex of the angle

pt2 [Input]

3d point 2

angle [Result]

angle in radians

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_3d.fsl

See Also

fz_math_2d_angle_of_2_lines

Function Set

fz_math_fset

Defined in

fz_math_api.h