cz.cuni.jagrlib.iface
Interface Intersectable

All Superinterfaces:
Property
All Known Subinterfaces:
RTScene
All Known Implementing Classes:
StaticCSGScene

public interface Intersectable
extends Property

Object which can be intersected by 3D rays.

Since:
0.11
See Also:
Intersectable.java, MicroFacet

Field Summary
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 MicroFacet intersection(double[] P0, double[] P1)
          Computes the nearest intersection of the given ray with scene surface.
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Method Detail

intersection

MicroFacet intersection(double[] P0,
                        double[] P1)
Computes the nearest intersection of the given ray with scene surface.

Parameters:
P0 - Ray origin (double[3] or double[4]).
P1 - Direction vector of the ray (double[3] or double[4]).
Returns:
The nearest intersection point or null.
See Also:
MicroFacet