Module raytracer

Class Intersections

java.lang.Object
de.grogra.ray.intersection.Intersections

public class Intersections extends Object
This is a helpful utility class for intersection calculations. It offers static mehtods to calculate intersections between a ray and a sphere, a box, a cylinder, a cone, a cone frustum, a plane or a parallelogram. For each of this cases there are two methods that can be used: get[object]_T Calculates only the distance of the ray origin to the intersection point. get[object]_IntersectionDescription Calculates diffenrent additional values of the intersection point. !!! It is important that you call get[object]_T first and with the same instance of the local varialbles object and after this second the method get[object]_IntersectionDescription. !!!
Author:
Micha