de.grogra.imp3d
public abstract class CameraBase extends java.lang.Object
| Constructor and Description |
|---|
CameraBase() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
getRay(float x,
float y,
Point3d origin,
Vector3d direction)
Determines the ray which starts at the camera and goes through
the specified point on the image plane of the camera.
|
abstract float |
getScaleAt(double x,
double y,
double z)
Computes an estimate for the scaling factor from 3D
world coordinates at
(x, y, z) to 2D coordinates
on the camera plane. |
abstract float |
getScaleAt(float z)
Computes an estimate for the scaling factor from view coordinates
around a depth of
z to 2D coordinates
on the camera plane. |
abstract Matrix4d |
getWorldToViewTransformation()
Returns the world-to-view transformation of this camera.
|
abstract float |
getZFar() |
abstract float |
getZNear() |
public abstract void getRay(float x,
float y,
Point3d origin,
Vector3d direction)
x - the x-coordinate on the image planey - the y-coordinate on the image planeorigin - the origin of the ray, in world coordinatesdirection - the direction of the ray, in world coordinatespublic abstract float getScaleAt(double x,
double y,
double z)
(x, y, z) to 2D coordinates
on the camera plane.x - x world coordinatey - y world coordinatez - z world coordinatepublic abstract float getScaleAt(float z)
z to 2D coordinates
on the camera plane.z - z view coordinatepublic abstract Matrix4d getWorldToViewTransformation()
public abstract float getZFar()
public abstract float getZNear()