Mount Fuji Engine  0.8b
MF_API bool MFCollision_RaySlabTest ( const MFVector rayPos,
const MFVector rayDir,
const MFVector plane,
float  slabHalfWidth,
MFRayIntersectionResult pResult = NULL 
)

Find the nearest point where a ray intersects a slab.

Parameters
rayPosRay starting position.
rayDirRay direction.
planeVector representing the plane to intersect.
slabHalfWidthHalf the width of the slab, or rather, the distance from the plane to the surface.
pResultOptional pointer to an MFRayIntersectionResult structure that receives details about the intersection.
Returns
True if the ray intersects the slab.