Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

Obj Class Reference

#include <obj.h>

Inheritance diagram for Obj:

Inheritance graph
[legend]
Collaboration diagram for Obj:

Collaboration graph
[legend]
List of all members.

Detailed Description

The basic class for building on objects in the world.

Now with extra affine transforms!

Author:
Stephen Bridges


Public Member Functions

void setup (float px, float py, float pz, float vx,\float vy, float vz, float ux, float uy, float uz)
 Set all parameters in one go.
void pos (float px, float py, float pz)
 Sets position vector.
void view (float ux, float uy, float uz)
 Sets view vector.
void up (float vx, float vy, float vz)
 Sets up vector.
void update (void)
 Creates strafe vector (normalised).

Public Attributes

Vec4 vpos
 The vector for the position of the object.
Vec4 vview
 The vector for the view of the the object.
Vec4 vup
 The vector for the up direction of the object.
Vec4 vstrafe
 The vector for the strafe direction.


Member Function Documentation

void Obj::pos float  px,
float  py,
float  pz
 

Sets position vector.

Parameters:
px X component of position vector.
py Y component of position vector.
pz Z component of position vector.

Reimplemented in AbsObj, and Light.

void Obj::setup float  px,
float  py,
float  pz,
float  vx,
\float  vy,
float  vz,
float  ux,
float  uy,
float  uz
 

Set all parameters in one go.

Calls pos, view, up.

See also:
pos

view

up

Parameters:
px X component of position vector.
py Y component of position vector.
pz Z component of position vector.
vx X component of view vector.
vy Y component of view vector.
vz Z component of view vector.
ux X component of up vector.
uy Y component of up vector.
uz Z component of up vector.

Here is the call graph for this function:

void Obj::up float  ux,
float  uy,
float  uz
 

Sets up vector.

Parameters:
ux X component of up vector.
uy Y component of up vector.
uz Z component of up vector.

void Obj::view float  vx,
float  vy,
float  vz
 

Sets view vector.

Parameters:
vx X component of view vector.
vy Y component of view vector.
vz Z component of view vector.


Member Data Documentation

Vec4 Obj::vpos
 

The vector for the position of the object.

3D only.

Vec4 Obj::vstrafe
 

The vector for the strafe direction.

Cross product of up and view.

Vec4 Obj::vup
 

The vector for the up direction of the object.

Needed for cameras etc. 3D only.

Vec4 Obj::vview
 

The vector for the view of the the object.

3D only. By view we mean the point that the vector is looking at.


The documentation for this class was generated from the following files:
Generated on Mon Jan 3 15:14:19 2005 for Graviton by  doxygen 1.3.9.1