Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

Vector4 Struct Reference
[GLT Math]

4D Vector More...

#include <vector4.h>

List of all members.

Public Methods

 Vector4 ()
 Default constructor.

 Vector4 (const Vector4 &v)
 Copy constructor.

 Vector4 (const real x, const real y, const real z, const real w=0.0)
 Constructor.

 Vector4 (const float *v)
 Constructor.

 Vector4 (const double *v)
 Constructor.

 Vector4 (const std::string &str)
 Construct from string.

realx ()
 x co-ordinate

const realx () const
 x co-ordinate

realy ()
 y co-ordinate

const realy () const
 y co-ordinate

realz ()
 z co-ordinate

const realz () const
 z co-ordinate

realw ()
 w co-ordinate

const realw () const
 w co-ordinate

realoperator[] (const int i)
 i'th co-ordinate

const realoperator[] (const int i) const
 i'th co-ordinate

 operator real * ()
 Access as array.


Protected Attributes

real _vector [4]
 Storage for x, y and z components.


Friends

std::ostream & operator<< (std::ostream &os, const Vector4 &x)
 Output vector to stream.

std::istream & operator>> (std::istream &is, Vector4 &x)
 Input vector from stream.


Detailed Description

4D Vector

Definition at line 224 of file umatrix.cpp.


The documentation for this struct was generated from the following files:
Generated on Tue Nov 5 11:11:49 2002 for GLT by doxygen1.2.18