mesh::Vector4 Class Reference

#include <vector4.h>

List of all members.

Public Member Functions

 Vector4 ()
 Vector4 (Real fX, Real fY, Real fZ, Real fW)
 Vector4 (Real afCoordinate[4])
 Vector4 (int afCoordinate[4])
 Vector4 (const Real *const r)
 Vector4 (const Vector4 &rkVector)
Real operator[] (unsigned i) const
Real & operator[] (unsigned i)
Vector4operator= (const Vector4 &rkVector)
bool operator== (const Vector4 &rkVector) const
bool operator!= (const Vector4 &rkVector) const
Vector4operator= (const Vector3 &rhs)
Real dotProduct (const Vector4 &vec) const

Public Attributes

Real x
Real y
Real z
Real w

Friends

std::ostream & operator<< (std::ostream &o, const Vector4 &v)


Detailed Description

4-dimensional homogenous vector.

Definition at line 27 of file vector4.h.


Constructor & Destructor Documentation

mesh::Vector4::Vector4 (  )  [inline]

Definition at line 33 of file vector4.h.

mesh::Vector4::Vector4 ( Real  fX,
Real  fY,
Real  fZ,
Real  fW 
) [inline]

Definition at line 36 of file vector4.h.

mesh::Vector4::Vector4 ( Real  afCoordinate[4]  )  [inline]

Definition at line 40 of file vector4.h.

mesh::Vector4::Vector4 ( int  afCoordinate[4]  )  [inline]

Definition at line 47 of file vector4.h.

References Real, w, x, y, and z.

mesh::Vector4::Vector4 ( const Real *const   r  )  [inline]

Definition at line 55 of file vector4.h.

mesh::Vector4::Vector4 ( const Vector4 rkVector  )  [inline]

Definition at line 59 of file vector4.h.


Member Function Documentation

Real mesh::Vector4::dotProduct ( const Vector4 vec  )  const [inline]

Calculates the dot (scalar) product of this vector with another.

Parameters:
vec Vector with which to calculate the dot product (together with this one).
Returns:
A float representing the dot product value.

Definition at line 136 of file vector4.h.

References w, x, y, and z.

bool mesh::Vector4::operator!= ( const Vector4 rkVector  )  const [inline]

Definition at line 99 of file vector4.h.

References w, x, y, and z.

Vector4& mesh::Vector4::operator= ( const Vector3 rhs  )  [inline]

Definition at line 107 of file vector4.h.

References w, mesh::Vector3::x, x, mesh::Vector3::y, y, mesh::Vector3::z, and z.

Vector4& mesh::Vector4::operator= ( const Vector4 rkVector  )  [inline]

Assigns the value of the other vector.

Parameters:
rkVector The other vector

Definition at line 81 of file vector4.h.

References w, x, y, and z.

bool mesh::Vector4::operator== ( const Vector4 rkVector  )  const [inline]

Definition at line 91 of file vector4.h.

References w, x, y, and z.

Real& mesh::Vector4::operator[] ( unsigned  i  )  [inline]

Definition at line 70 of file vector4.h.

References x.

Real mesh::Vector4::operator[] ( unsigned  i  )  const [inline]

Definition at line 63 of file vector4.h.

References x.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const Vector4 v 
) [friend]

Function for writing to a stream.

Definition at line 142 of file vector4.h.


Member Data Documentation

Real mesh::Vector4::w

Definition at line 30 of file vector4.h.

Referenced by dotProduct(), operator!=(), operator=(), operator==(), and Vector4().

Real mesh::Vector4::x

Definition at line 30 of file vector4.h.

Referenced by dotProduct(), operator!=(), operator=(), operator==(), operator[](), and Vector4().

Real mesh::Vector4::y

Definition at line 30 of file vector4.h.

Referenced by dotProduct(), operator!=(), operator=(), operator==(), and Vector4().

Real mesh::Vector4::z

Definition at line 30 of file vector4.h.

Referenced by dotProduct(), operator!=(), operator=(), operator==(), and Vector4().


The documentation for this class was generated from the following file:
Generated on Fri Oct 26 13:35:18 2007 for FEMAXX (Finite Element Maxwell Eigensolver) by  doxygen 1.4.7