Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

CCamera Class Reference

Inheritance diagram for CCamera:

CBasicCamera List of all members.

Detailed Description

Basic camera.

Has only the matrices: camera (as object), view (inverse of camera), projection. Provides methods for setting the matrices for DX, and some convenience methods.


Public Methods

D3DXVECTOR3 getPosition () const
 Gets camera position in world space.

float getFOV () const
 Gets FOV.

float getZNear () const
 Gets near Z plane.

float getZFar () const
 Gets far Z plane.

D3DXVECTOR3 getWorldRay (float x, float y) const
 Gets world space ray from camera's viewing plane coordinates.

D3DXVECTOR3 getCameraRay (float x, float y) const
 Gets camera space ray from camera's viewing plane coordinates.


Member Function Documentation

D3DXVECTOR3 CCamera::getCameraRay float    x,
float    y
const
 

Gets camera space ray from camera's viewing plane coordinates.

Parameters:
x  X coordinate (-1 at left, 1 at right).
y  Y coordinate (-1 at top, 1 at bottom).
Returns :
Ray in camera space (NOT unit length).

D3DXVECTOR3 CCamera::getWorldRay float    x,
float    y
const
 

Gets world space ray from camera's viewing plane coordinates.

Parameters:
x  X coordinate (-1 at left, 1 at right).
y  Y coordinate (-1 at top, 1 at bottom).
Returns :
Ray in world space (NOT unit length).


Generated on Thu Dec 5 17:27:58 2002 for LT Game Jam Session by doxygen1.2.17