gcu::Vector3f Class Reference

#include <gcu/vector.h>

List of all members.

Public Member Functions

 Vector3f ()
 Vector3f (float x, float y, float z)
 ~Vector3f ()
Vector3foperator= (Vector3f const &other)
Vector3f operator- (Vector3f const &other) const
Vector3f operator+ (Vector3f const &other) const
Vector3f operator* (float f) const

Detailed Description

Utility 3d vectors class used by the gcu::Sphere class.

Definition at line 78 of file vector.h.


Constructor & Destructor Documentation

gcu::Vector3f::Vector3f (  ) 

Constructs a vector with all three coordinates equal to 0.

gcu::Vector3f::Vector3f ( float  x,
float  y,
float  z 
)
Parameters:
x the x coordinate.
y the y coordinate.
z the z coordinate.

Constructs a vector given its three coordinates.

gcu::Vector3f::~Vector3f (  ) 

The destructor.


Member Function Documentation

Vector3f gcu::Vector3f::operator* ( float  f  )  const
Parameters:
f a real parameter.
Returns:
the vector multiplied by f.
Vector3f gcu::Vector3f::operator+ ( Vector3f const &  other  )  const
Parameters:
other a Vector3f to add.
Returns:
the some of the two vectors.
Vector3f gcu::Vector3f::operator- ( Vector3f const &  other  )  const
Parameters:
other a Vector3f to substract.
Returns:
Vector3f& gcu::Vector3f::operator= ( Vector3f const &  other  ) 
Parameters:
other a Vector3f to copy.

The assignment operator.

Returns:
a new vector identical to other and this.

The documentation for this class was generated from the following file:
Generated on Tue Apr 13 14:55:06 2010 for The Gnome Chemistry Utils by  doxygen 1.6.3