Shapes 3D  3.0
 All Classes Functions Variables Pages
shapes3d.utils.Camera< T extends Camera< T > > Class Referenceabstract
Inheritance diagram for shapes3d.utils.Camera< T extends Camera< T > >:

Public Member Functions

abstract T getThis ()
 
void update (float deltaTime)
 
apply (PGraphics pg)
 
perspective (Perspective p)
 
Perspective perspective ()
 
PVector pos ()
 
pos (PVector pos)
 
PVector up ()
 
up (PVector up)
 
PVector lookat ()
 
lookat (PVector lookat)
 
PVector heading ()
 
heading (PVector heading)
 
PVector velocity ()
 
velocity (PVector velocity)
 
float speed ()
 
speed (float speed)
 

Protected Attributes

Perspective perspective = null
 
PVector pos = new PVector()
 
PVector up = new PVector(0,1,0)
 
PVector lookat = new PVector(0,0,1)
 
PVector target = new PVector(0,0,1)
 
PVector velocity = new PVector()
 

Detailed Description

Base class for all cameras.

Author
Peter Lager
Parameters
<T>Camera or class that extends Camera

Member Function Documentation

T shapes3d.utils.Camera< T extends Camera< T > >.apply ( PGraphics  pg)

Apply any perspective used by this camera to the specified graphics context.

Parameters
pgthe graphics to apply perspective to
Returns
this camera
T shapes3d.utils.Camera< T extends Camera< T > >.perspective ( Perspective  p)

Set the perspective to be used by this camera.

Parameters
pthe perspective for this camera
Returns
void shapes3d.utils.Camera< T extends Camera< T > >.update ( float  deltaTime)

Move the camera based on its velocity.

Parameters
deltaTimethe elapsed time (s)

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