Package cz.fidentis.analyst.data.ray
Interface RayFactory
public interface RayFactory
This interface provides services that instantiates objects related to ray intersections.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic RayIntersection
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 locationnormal
- 3D vectortriangle
- the intersectedMeshTriangle
directHit
- true, if the hit is direct, false otherwise
-