formZ SDK | 5.0 API Reference | System | Math

# fz_math_3d_rot_pt_around_axis

Description

Rotates a 3d point around one of the three orthogonal axes.
Note : pt and rot_pt can be passed as the same pointer.

Plugin Prototype

fzrt_error_td fz_math_3d_rot_pt_around_axis(

fz_axis_enum | which_axis,
fz_xyz_td * | pt,
double | angle,
fz_xyz_td * | rot_pt )

Parameters

which_axis [Input]

axis to rotate point about

pt [Input]

3d point to be rotated

angle [Input]

angle to rotate point about axis

rot_pt [Result]

rotated 3d point

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_3d.fsl

See Also

Function Set

fz_math_fset

Defined in

fz_math_api.h