formZ SDK | 5.0 API Reference | System | Math
Description
Calculate the intersection of a line with a cone, defined by an apex point, a vector for the cone axis direction and the cone's half angle (angle between its side and the axis) n_int_pts indicates, whether there are 0, 1 or 2 intersection points, returned in the int_pts array. Note, that this must be an array that can hold 2 fz_xyz_td.
Plugin Prototype
fzrt_error_td fz_math_3d_isect_line_cone(
line_start, | |
line_end, | |
cone_apex, | |
cone_axis_vector, | |
double | cone_angle, |
int_pts[2], | |
fzrt_int * | n_int_pts ) |
Parameters
line_start [Input]
start point of 3d line segment
line_end [Input]
end point of 3d line segment
cone_apex [Input]
apex (tip) of the cone
cone_axis_vector [Input]
axis direction of the cone (normalized)
cone_angle [Input]
the cone's half angle
int_pts[2] [Result]
intersecting 3d points array
n_int_pts [Result]
number of intersecting points
Returns
Error codes
Availability
5.0.0.0
Example Files
See Also
fz_math_3d_isect_line_plane, fz_math_3d_isect_line_cube, fz_math_3d_isect_lines, , fz_math_3d_isect_3_planes, fz_math_3d_isect_2_planes, fz_math_3d_isect_line_cyln
Function Set
Defined in