Module raytracer
Package de.grogra.ray

Interface RTCamera

All Known Implementing Classes:
GroIMPCamera

public interface RTCamera
This interface represents an interface of a scene camera.
Author:
Micha
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • getRayFromCoordinates

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