The ray type, for ray-object intersection tests (raycasting)
Constructor
Variables
Methods
inlinehitBBox(bb:BBox):RayHit
Intersection test with a bounding box
Parameters:
bb | the bounding box |
---|
Returns:
null (no intersection), or an object holding intersection info
inlinehitBVH(bvh:BVHTree):RayHit
Intersection test with a bounding volume hierarchy
Parameters:
bvh | the bounding volume hierarchy |
---|
Returns:
null (no intersection), or an object holding intersection info
inlinehitTriangle(p0:Vec3, p1:Vec3, p2:Vec3):RayHit
Intersection test with a triangle
Parameters:
p0 | first vertex of the triangle |
---|---|
p1 | second vertex of the triangle |
p2 | third vertex of the triangle |
Returns:
null (no intersection), or an object holding intersection info