gnu.gleem
Class RightTruncPyrMapping

java.lang.Object
  |
  +--gnu.gleem.RightTruncPyrMapping
All Implemented Interfaces:
ScreenToRayMapping

public class RightTruncPyrMapping
extends java.lang.Object
implements ScreenToRayMapping

The only mapping gleem supports right now -- a right truncated pyramid.


Constructor Summary
RightTruncPyrMapping()
           
 
Method Summary
 void mapScreenToRay(Vec2f screenCoords, CameraParameters params, Vec3f raySource, Vec3f rayDirection)
          Maps screen (x, y) to 3D point source and direction based on given CameraParameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RightTruncPyrMapping

public RightTruncPyrMapping()
Method Detail

mapScreenToRay

public void mapScreenToRay(Vec2f screenCoords,
                           CameraParameters params,
                           Vec3f raySource,
                           Vec3f rayDirection)
Description copied from interface: ScreenToRayMapping
Maps screen (x, y) to 3D point source and direction based on given CameraParameters. screenCoords and params are incoming arguments; raySource and rayDirection are mutated to contain the result.

Specified by:
mapScreenToRay in interface ScreenToRayMapping