The Gnome Chemistry Utils  0.14.0
Public Member Functions | List of all members
gcu::Vector3f Class Reference

#include <gcu/vector.h>

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
void Setx (float val)
float Getx (void) const
float & GetRefx (void)
void Sety (float val)
float Gety (void) const
float & GetRefy (void)
void Setz (float val)
float Getz (void) const
float & GetRefz (void)

Detailed Description

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

Definition at line 177 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
xthe x coordinate.
ythe y coordinate.
zthe z coordinate.

Constructs a vector given its three coordinates.

gcu::Vector3f::~Vector3f ( )

The destructor.

Member Function Documentation

gcu::Vector3f::GetRefx ( void  )
inline
Returns
the first coordinate of the vector as a reference.

Definition at line 238 of file vector.h.

gcu::Vector3f::GetRefy ( void  )
inline
Returns
the second coordinate of the vector as a reference.

Definition at line 250 of file vector.h.

gcu::Vector3f::GetRefz ( void  )
inline
Returns
the third coordinate of the vector as a reference.

Definition at line 262 of file vector.h.

gcu::Vector3f::Getx ( void  ) const
inline
Returns
the first coordinate of the vector.

Definition at line 238 of file vector.h.

gcu::Vector3f::Gety ( void  ) const
inline
Returns
the second coordinate of the vector.

Definition at line 250 of file vector.h.

gcu::Vector3f::Getz ( void  ) const
inline
Returns
the third coordinate of the vector.

Definition at line 262 of file vector.h.

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

The assignment operator.

Returns
a new vector identical to other and this.
gcu::Vector3f::Setx ( float  x)
inline
Parameters
xthe new value for the first coordinate.

Sets the first coordinate of the vector.

Definition at line 238 of file vector.h.

gcu::Vector3f::Sety ( float  y)
inline
Parameters
ythe new value for the second coordinate.

Sets the second coordinate of the vector.

Definition at line 250 of file vector.h.

gcu::Vector3f::Setz ( float  z)
inline
Parameters
zthe new value for the third coordinate.

Sets the third coordinate of the vector.

Definition at line 262 of file vector.h.


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