Class RayHit
java.lang.Object
eu.svjatoslav.sixth.e3d.renderer.octree.raytracer.RayHit
Records the result of a ray-octree intersection test.
A RayHit stores the 3D world-space coordinates where a Ray
intersected an octree cell, along with a pointer (index) to the intersected cell
within the OctreeVolume's internal
cell arrays.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRayHit(float x, float y, float z, int cellPointer) Creates a new ray hit record. -
Method Summary
-
Constructor Details
-
RayHit
public RayHit(float x, float y, float z, int cellPointer) Creates a new ray hit record.- Parameters:
x- the x coordinate of the intersection pointy- the y coordinate of the intersection pointz- the z coordinate of the intersection pointcellPointer- the index of the intersected cell in the octree's cell arrays
-