de.grogra.imp3d.ray
| Constructor and Description |
|---|
GroIMPCamera(Camera camera,
double ration) |
| 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.
|
public GroIMPCamera(Camera camera, double ration)
public void getRayFromCoordinates(double x,
double y,
Ray ray)
RTCameragetRayFromCoordinates in interface RTCamerax - 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.