Find the nearest point where a ray intersects a slab.
- Parameters
-
| rayPos | Ray starting position. |
| rayDir | Ray direction. |
| plane | Vector representing the plane to intersect. |
| slabHalfWidth | Half the width of the slab, or rather, the distance from the plane to the surface. |
| pResult | Optional pointer to an MFRayIntersectionResult structure that receives details about the intersection. |
- Returns
- True if the ray intersects the slab.