Module imp3d

Class GroIMPCamera

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

public class GroIMPCamera extends Object implements RTCamera
  • Constructor Details

    • GroIMPCamera

      public GroIMPCamera(Camera camera, double ration)
  • Method Details

    • 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.