formZ SDK | 5.0 API Reference | System | Math

# fz_math_3d_rot_pt_around_line

Description

Rotates a 3d point around a 3d line segment (defined by it's start and end points) by an angle.
Note : pt and rot_pt can be passed as the same pointer.

Plugin Prototype

fzrt_error_td fz_math_3d_rot_pt_around_line(

fz_xyz_td * | line_start,
fz_xyz_td * | line_end,
fz_xyz_td * | pt,
double | angle,
fz_xyz_td * | rot_pt )

Parameters

line_start [Input]

start point of 3d line segment to point about

line_end [Input]

end point of 3d line segment to rotate point about

pt [Input]

3d point to rotate about line

angle [Input]

angle to rotate the point

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