Functions | |
| RwReal | RtLineTriangleIntersectionTest (RwLine *line, RwV3d *normal, RwV3d *v0, RwV3d *v1, RwV3d *v2) |
| RwBool | RtLineSphereIntersectionTest (RwLine *line, RwSphere *sphere, RwReal *centerDist) |
| RwLine * | RtLineClipPlane (RwLine *line, RwPlane *plane) |
| RwLine * | RtLineClipBBox (RwLine *line, RwBBox *box) |
These functions test for intersections with lines:
|
||||||||||||
|
RtLineClipBBox clips a line against a bounding box such that the resultant line lies * entirely within the box. Note that the header file rtray.h must be included, and the program should be linked to rtray.lib.
|
|
||||||||||||
|
RtLineClipPlane clips a line against a plane such that the line lies entirely inside the plane. The inside of the plane is defined by the normal (which points outside). Note that the header file rtray.h must be included, and the program should be linked to rtray.lib.
|
|
||||||||||||||||
|
RtLineSphereIntersectionTest tests for the intersection of a line with a sphere, and returns a distance parameter.
|
|
||||||||||||||||||||||||
|
OBSOLETE: Use RtIntersectionLineTriangle from the rtintsec toolkit. RtLineTriangleIntersectionTest intersects a line with a triangle and return the parametric distance along the line of intersection. Note that the header file rtray.h must be included, and the program should be linked to rtray.lib.
|
© 1993-2004 Criterion Software Limited. All rights reserved. Built Thu Feb 12 13:47:14 2004.
Send Feedback