net.sf.j3d.threeD.raytracer.camera
Interface Camera
- All Known Implementing Classes:
- CameraObject, OrthographicCamera, PinholeCamera, ThinLensCamera
public interface Camera
Implementations of the Camera interface provide a method for calculating viewing rays.
- Author:
- Mike Murray
|
Method Summary |
Ray |
rayAt(double i,
double j,
int screenWidth,
int screenHeight)
|
rayAt
Ray rayAt(double i,
double j,
int screenWidth,
int screenHeight)
- Parameters:
i - X coordinate of pixel.j - Y coordinate of pixel.screenWidth - Width of image.screenHeight - Height of image.
- Returns:
- A Ray object that represents the viewing ray at (i, j)