vrml::Vector4 Class Reference

a 4d vector used together with Matrix4x4 to represent the OpenGL Matrix Stack More...

#include <vector4.h>

List of all members.

Public Member Functions

bool operator!= (const Vector4 &other) const
bool operator!= (const Vector4 &other) const
Vector4 operator* (double x) const
Vector4 operator* (double x) const
Vector4operator*= (double x)
Vector4operator*= (double x)
Vector4 operator+ (const Vector4 &other) const
Vector4 operator+ (const Vector4 &other) const
Vector4operator+= (const Vector4 &other)
Vector4operator+= (const Vector4 &other)
Vector4 operator- () const
Vector4 operator- (const Vector4 &other) const
Vector4 operator- () const
Vector4 operator- (const Vector4 &other) const
Vector4operator-= (const Vector4 &other)
Vector4operator-= (const Vector4 &other)
Vector4 operator/ (double x) const
Vector4 operator/ (double x) const
Vector4operator/= (double x)
Vector4operator/= (double x)
Vector4operator= (const Vector4 &other)
Vector4operator= (const Vector4 &other)
bool operator== (const Vector4 &other) const
bool operator== (const Vector4 &other) const
const double & operator[] (unsigned int m) const throw (std::runtime_error)
double & operator[] (unsigned int m) throw (std::runtime_error)
const double & operator[] (unsigned int m) const throw (std::runtime_error)
double & operator[] (unsigned int m) throw (std::runtime_error)
 Vector4 (const double *data)
 Vector4 (double d1, double d2, double d3, double d4)
 Vector4 (const Vector4 &other)
 Vector4 ()
 Vector4 (const double *data)
 Vector4 (double d1, double d2, double d3, double d4)
 Vector4 (const Vector4 &other)
 Vector4 ()
 ~Vector4 ()
 ~Vector4 ()

Protected Member Functions

void copy (const Vector4 &other)
void copy (const Vector4 &other)

Protected Attributes

double _data [4]
 array that represents the vector elems

Friends

Vector4 operator* (double x, const Vector4 &v)
Vector4 operator* (double x, const Vector4 &v)
Vector4 operator/ (double x, const Vector4 &v)
Vector4 operator/ (double x, const Vector4 &v)

Detailed Description

a 4d vector used together with Matrix4x4 to represent the OpenGL Matrix Stack

Definition at line 30 of file include/hogman_minimal/graph_viewer/vector4.h.


Constructor & Destructor Documentation

vrml::Vector4::Vector4 (  ) 

Definition at line 28 of file vector4.cpp.

vrml::Vector4::~Vector4 (  ) 

Definition at line 33 of file vector4.cpp.

vrml::Vector4::Vector4 ( const Vector4 other  ) 

Definition at line 37 of file vector4.cpp.

vrml::Vector4::Vector4 ( double  d1,
double  d2,
double  d3,
double  d4 
)

Definition at line 158 of file vector4.cpp.

vrml::Vector4::Vector4 ( const double *  data  )  [explicit]

Definition at line 47 of file vector4.cpp.

vrml::Vector4::Vector4 (  ) 
vrml::Vector4::~Vector4 (  ) 
vrml::Vector4::Vector4 ( const Vector4 other  ) 
vrml::Vector4::Vector4 ( double  d1,
double  d2,
double  d3,
double  d4 
)
vrml::Vector4::Vector4 ( const double *  data  )  [explicit]

Member Function Documentation

void vrml::Vector4::copy ( const Vector4 other  )  [protected]
void vrml::Vector4::copy ( const Vector4 other  )  [protected]

Definition at line 42 of file vector4.cpp.

bool vrml::Vector4::operator!= ( const Vector4 other  )  const
bool vrml::Vector4::operator!= ( const Vector4 other  )  const

Definition at line 70 of file vector4.cpp.

Vector4 vrml::Vector4::operator* ( double  x  )  const
Vector4 vrml::Vector4::operator* ( double  x  )  const

Definition at line 91 of file vector4.cpp.

Vector4& vrml::Vector4::operator*= ( double  x  ) 
Vector4 & vrml::Vector4::operator*= ( double  x  ) 

Definition at line 127 of file vector4.cpp.

Vector4 vrml::Vector4::operator+ ( const Vector4 other  )  const
Vector4 vrml::Vector4::operator+ ( const Vector4 other  )  const

Definition at line 75 of file vector4.cpp.

Vector4& vrml::Vector4::operator+= ( const Vector4 other  ) 
Vector4 & vrml::Vector4::operator+= ( const Vector4 other  ) 

Definition at line 115 of file vector4.cpp.

Vector4 vrml::Vector4::operator- (  )  const
Vector4 vrml::Vector4::operator- ( const Vector4 other  )  const
Vector4 vrml::Vector4::operator- (  )  const

Definition at line 107 of file vector4.cpp.

Vector4 vrml::Vector4::operator- ( const Vector4 other  )  const

Definition at line 83 of file vector4.cpp.

Vector4& vrml::Vector4::operator-= ( const Vector4 other  ) 
Vector4 & vrml::Vector4::operator-= ( const Vector4 other  ) 

Definition at line 121 of file vector4.cpp.

Vector4 vrml::Vector4::operator/ ( double  x  )  const
Vector4 vrml::Vector4::operator/ ( double  x  )  const

Definition at line 99 of file vector4.cpp.

Vector4& vrml::Vector4::operator/= ( double  x  ) 
Vector4 & vrml::Vector4::operator/= ( double  x  ) 

Definition at line 133 of file vector4.cpp.

Vector4& vrml::Vector4::operator= ( const Vector4 other  ) 
Vector4 & vrml::Vector4::operator= ( const Vector4 other  ) 

Definition at line 52 of file vector4.cpp.

bool vrml::Vector4::operator== ( const Vector4 other  )  const
bool vrml::Vector4::operator== ( const Vector4 other  )  const

Definition at line 60 of file vector4.cpp.

const double& vrml::Vector4::operator[] ( unsigned int  m  )  const throw (std::runtime_error) [inline]

Definition at line 47 of file src/graph_viewer/vector4.h.

double& vrml::Vector4::operator[] ( unsigned int  m  )  throw (std::runtime_error) [inline]

Definition at line 40 of file src/graph_viewer/vector4.h.

const double& vrml::Vector4::operator[] ( unsigned int  m  )  const throw (std::runtime_error) [inline]
double& vrml::Vector4::operator[] ( unsigned int  m  )  throw (std::runtime_error) [inline]

Friends And Related Function Documentation

Vector4 operator* ( double  x,
const Vector4 v 
) [friend]

Definition at line 139 of file vector4.cpp.

Vector4 operator* ( double  x,
const Vector4 v 
) [friend]

Definition at line 139 of file vector4.cpp.

Vector4 operator/ ( double  x,
const Vector4 v 
) [friend]

Definition at line 144 of file vector4.cpp.

Vector4 operator/ ( double  x,
const Vector4 v 
) [friend]

Definition at line 144 of file vector4.cpp.


Member Data Documentation

double vrml::Vector4::_data [protected]

array that represents the vector elems

Definition at line 74 of file include/hogman_minimal/graph_viewer/vector4.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


hogman_minimal
Author(s): Maintained by Juergen Sturm
autogenerated on Fri Jan 11 09:38:41 2013