formZ SDK | 5.0 API Reference | System | Math
Description
Calculate the intersection of a line with a cylinder, defined by an origin point, a vector for the cylinder axis direction and the cylinder's radius. 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_cyln(
line_start, | |
line_end, | |
cyln_org, | |
cyln_axis_vector, | |
double | radius, |
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
cyln_org [Input]
origin (center) of the cylinder
cyln_axis_vector [Input]
axis direction of the cylinder (normalized)
radius [Input]
the cylinfer radius
int_pts[2] [Result]
intersecting 3d points array
n_int_pts [Result]
number of intersecting points
Returns
Error codes
Availability
7.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,
Function Set
Defined in