java.lang.Object
eu.svjatoslav.sixth.e3d.renderer.octree.raytracer.RayHit

public class RayHit extends Object
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 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 point
      y - the y coordinate of the intersection point
      z - the z coordinate of the intersection point
      cellPointer - the index of the intersected cell in the octree's cell arrays