Vector3 Class Reference

#include <Vector3.h>

List of all members.

Public Member Functions

 Vector3 ()
 Vector3 (float x_coord, float y_coord, float z_coord)
float getXCoord ()
float getYCoord ()
float getZCoord ()
void setXCoord (float x_coord)
void setYCoord (float y_coord)
void setZCoord (float z_coord)
Vector3 normalizeVector (Vector3 vec)

Public Attributes

float x_coord_
 The x-coordinate of the vector 'Vector'.
float y_coord_
 The y-coordinate of the vector 'Vector'.
float z_coord_
 The z-coordinate of the vector 'Vector'.


Constructor & Destructor Documentation

Vector3::Vector3 (  ) 

The default constructor.

Vector3::Vector3 ( float  x_coord,
float  y_coord,
float  z_coord 
)

The second constructor which allows the initialisation of the object variables.

Parameters:
x_coord The x coordinate of the vector.
y_coord The y coordinate of the vector.
z_coord The z coordinate of the vector.


Member Function Documentation

float Vector3::getXCoord (  ) 

Returns the x-coordinate of the vector.

Returns:
the x-coordinate of the vector

float Vector3::getYCoord (  ) 

Returns the y-coordinate of the vector.

Returns:
the y-coordinate of the vector

float Vector3::getZCoord (  ) 

Returns the z-coordinate of the vector.

Returns:
the z-coordinate of the vector

Vector3 Vector3::normalizeVector ( Vector3  vec  ) 

Normalizes the given vector.

Returns:
the normalized vector

void Vector3::setXCoord ( float  x_coord  ) 

Sets the x-coordinate of the vector.

Parameters:
the x-coordinate of the vector

void Vector3::setYCoord ( float  y_coord  ) 

Sets the y-coordinate of the vector.

Returns:
the y-coordinate of the vector

void Vector3::setZCoord ( float  z_coord  ) 

Sets the z-coordinate of the vector.

Returns:
the z-coordinate of the vector


Member Data Documentation

float Vector3::x_coord_

The x-coordinate of the vector 'Vector'.

float Vector3::y_coord_

The y-coordinate of the vector 'Vector'.

float Vector3::z_coord_

The z-coordinate of the vector 'Vector'.


The documentation for this class was generated from the following files:
Generated on Wed Dec 6 11:27:27 2006 by  doxygen 1.4.7