Arty
Public Member Functions | List of all members
Camera Class Referenceabstract

Base class for cameras. More...

#include <cameras.h>

Inheritance diagram for Camera:
PerspectiveCamera

Public Member Functions

virtual Ray gen_ray (float u, float v) const =0
 Generates a ray for a point on the image plane, represented by (u, v) in [-1,1]^2.
 
virtual float3 project (const float3 &p) const =0
 Projects a point onto the image plane and returns the corresponding (u, v, z) coordinates.
 
virtual float3 unproject (const float3 &p) const =0
 Unprojects a point on the image plane, represented by (u, v, z) with (u, v) in [-z, z]^2 and z in [0, inf[.
 
virtual CameraGeometry geometry (float u, float v) const =0
 Returns the geometry at a given point on the image plane.
 
virtual void mouse_motion (float x, float y)=0
 Updates the camera after mouse input.
 
virtual void keyboard_motion (float x, float y, float z)=0
 Updates the camera after keyboard input.
 

Detailed Description

Base class for cameras.


The documentation for this class was generated from the following file: