Vector3i Class Reference

This class represents a three dimensional vector. More...

#include <Vector3i.h>

List of all members.

Public Member Functions

 Vector3i ()
 Standard constructer which initializes the vector to {0; 0; 0}.
 Vector3i (int p_x, int p_y, int p_z)
 Constructor which initializes the vector with the given values.
virtual ~Vector3i ()
 Standard destructor.
Vector3i operator- (Vector3i subtrahend)
 Subtracts the given vector.
Vector3i operator+ (Vector3i summand)
 Adds the given vector.
Vector3i operator+= (Vector3i summand)
 Adds the given vector.
Vector3i operator-= (Vector3i subtrahend)
 Subtracts the given vector.

Public Attributes

int x
 Holds the x-value of the vector.
int y
 Holds the y-value of the vector.
int z
 Holds the z-value of the vector.


Detailed Description

This class represents a three dimensional vector.

Definition at line 27 of file Vector3i.h.


Constructor & Destructor Documentation

Vector3i::Vector3i (  ) 

Standard constructer which initializes the vector to {0; 0; 0}.

Definition at line 30 of file Vector3i.cpp.

References x, y, and z.

Vector3i::Vector3i ( int  p_x,
int  p_y,
int  p_z 
)

Constructor which initializes the vector with the given values.

Parameters:
p_x The amaount for the x-value of the vector.
p_y The amaount for the y-value of the vector.
p_z The amaount for the z-value of the vector.

Definition at line 23 of file Vector3i.cpp.

References x, y, and z.

Vector3i::~Vector3i (  )  [virtual]

Standard destructor.

Definition at line 37 of file Vector3i.cpp.


Member Function Documentation

Vector3i Vector3i::operator- ( Vector3i  subtrahend  ) 

Subtracts the given vector.

Parameters:
subtrahend The vector that will be substracted.
Returns:
The resultiung vector.

Definition at line 50 of file Vector3i.cpp.

References x, y, and z.

Vector3i Vector3i::operator+ ( Vector3i  summand  ) 

Adds the given vector.

Parameters:
summand The vector that will be added.
Returns:
The resultiung vector.

Definition at line 41 of file Vector3i.cpp.

References x, y, and z.

Vector3i Vector3i::operator+= ( Vector3i  summand  ) 

Adds the given vector.

Parameters:
summand The vector that will be added.
Returns:
The resultiung vector.

Definition at line 59 of file Vector3i.cpp.

Vector3i Vector3i::operator-= ( Vector3i  subtrahend  ) 

Subtracts the given vector.

Parameters:
subtrahend The vector that will be substracted.
Returns:
The resultiung vector.

Definition at line 64 of file Vector3i.cpp.


Member Data Documentation

int Vector3i::x

Holds the x-value of the vector.

Definition at line 85 of file Vector3i.h.

Referenced by operator+(), operator-(), Level::pick(), DAEffect::render(), FunctionHandler::scroll(), and Vector3i().

int Vector3i::y

Holds the y-value of the vector.

Definition at line 90 of file Vector3i.h.

Referenced by operator+(), operator-(), Level::pick(), DAEffect::render(), FunctionHandler::scroll(), and Vector3i().

int Vector3i::z

Holds the z-value of the vector.

Definition at line 95 of file Vector3i.h.

Referenced by operator+(), operator-(), and Vector3i().


The documentation for this class was generated from the following files:
Generated on Tue Jul 17 22:02:23 2007 for C0re by  doxygen 1.5.2