java.lang.Object
de.grogra.imp3d.ray.GroIMPCamera
- All Implemented Interfaces:
RTCamera
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Constructor Details
-
GroIMPCamera
-
-
Method Details
-
getRayFromCoordinates
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 interfaceRTCamera
- 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.
-