Interface RayFactory


public interface RayFactory
This interface provides services that instantiates objects related to ray intersections.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    createRayIntersection(javax.vecmath.Point3d position, javax.vecmath.Vector3d normal, MeshTriangle triangle, boolean directHit)
    Returns new Ray Intersection.
  • Method Details

    • createRayIntersection

      static RayIntersection createRayIntersection(javax.vecmath.Point3d position, javax.vecmath.Vector3d normal, MeshTriangle triangle, boolean directHit)
      Returns new Ray Intersection.
      Parameters:
      position - 3D location
      normal - 3D vector
      triangle - the intersected MeshTriangle
      directHit - true, if the hit is direct, false otherwise