de.grogra.ray
public interface RTCamera
| Modifier and Type | Method and 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.
|
void getRayFromCoordinates(double x,
double y,
Ray ray)
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.