de.grogra.imp3d.ray
Class GroIMPCamera

java.lang.Object
  extended by de.grogra.imp3d.ray.GroIMPCamera
All Implemented Interfaces:
RTCamera

public class GroIMPCamera
extends java.lang.Object
implements RTCamera


Constructor Summary
GroIMPCamera(Camera camera, double ration)
           
 
Method Summary
 void getRayFromCoordinates(double x, double y, Ray ray)
          This method generates a ray that has its origin in the cameras origin and will go through the given pixel in the image plane.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroIMPCamera

public GroIMPCamera(Camera camera,
                    double ration)
Method Detail

getRayFromCoordinates

public void getRayFromCoordinates(double x,
                                  double y,
                                  Ray ray)
Description copied from interface: RTCamera
This method generates a ray that has its origin in the cameras origin and will go through the given pixel in the image plane.

Specified by:
getRayFromCoordinates in interface RTCamera
Parameters:
x - Represents the relative x postion of the top left corner of the pixel. It ranges from -1 to +1.
y - Represents the relative y postion of the top left corner of the pixel. It ranges from -1 to +1.
ray - The generated ray is stored in this parameter.