rtVTK  0.6.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Static Public Attributes | Private Attributes | Friends
Math::Vector< T > Class Template Reference

Storage and manipulation of vectors. More...

List of all members.

Public Member Functions

 Vector (const T &x, const T &y, const T &z)
 Vector (const Vector &v)
 Vector ()
 Vector (const Core::RGB< T > &rgb)
template<typename U >
 Vector (const Core::RGB< U > &rgb)
template<typename U >
 Vector (const Vector< U > &v)
 ~Vector ()
T & operator[] (uint i)
const T & operator[] (uint i) const
bool operator== (const Vector &v) const
Vector operator- () const
length2 () const
length () const
normalize ()
Vector< T > normal () const
Vector< T > orthogonal () const
Vector operator+ (const Vector &v) const
Vector operator- (const Vector &v) const
Vectoroperator+= (const Vector &v)
Vector operator* (const T &s) const
Vector operator/ (const T &s) const
Vectoroperator*= (const T &s)

Static Public Attributes

static const Vector Epsilon
static const Vector One
static const Vector Max
static const Vector Min
static const Vector Zero

Private Attributes

e [3]

Friends

class Point< T >
class Vector
Vector< T > Math::operator* (const T &, const Vector< T > &)
Vector< T > Math::operator/ (const T &, const Vector< T > &)
Math::Dot (const Vector< T > &, const Vector< T > &)
Vector< T > Math::Cross (const Vector< T > &, const Vector< T > &)
Vector Min (const Vector &v0, const Vector &v1)
Vector Max (const Vector &v0, const Vector &v1)
istream & operator>> (istream &in, Vector &v)
ostream & operator<< (ostream &out, const Vector &v)

Detailed Description

template<typename T>
class Math::Vector< T >

Storage and manipulation of vectors.


Constructor & Destructor Documentation

template<typename T>
Math::Vector< T >::Vector ( const T &  x,
const T &  y,
const T &  z 
) [inline]

References Math::Vector< T >::e.

template<typename T>
Math::Vector< T >::Vector ( const Vector< T > &  v) [inline]

References Math::Vector< T >::e.

template<typename T>
Math::Vector< T >::Vector ( ) [inline]
template<typename T>
Math::Vector< T >::Vector ( const Core::RGB< T > &  rgb) [inline, explicit]
template<typename T>
template<typename U >
Math::Vector< T >::Vector ( const Core::RGB< U > &  rgb) [inline, explicit]
template<typename T>
template<typename U >
Math::Vector< T >::Vector ( const Vector< U > &  v) [inline, explicit]

References Math::Vector< T >::e.

template<typename T>
Math::Vector< T >::~Vector ( ) [inline]

Member Function Documentation

template<typename T>
T Math::Vector< T >::length ( ) const [inline]
template<typename T>
T Math::Vector< T >::length2 ( ) const [inline]
template<typename T>
Vector<T> Math::Vector< T >::normal ( ) const [inline]
template<typename T>
T Math::Vector< T >::normalize ( ) [inline]
template<typename T>
Vector Math::Vector< T >::operator* ( const T &  s) const [inline]
template<typename T>
Vector& Math::Vector< T >::operator*= ( const T &  s) [inline]

References Math::Vector< T >::e.

template<typename T>
Vector Math::Vector< T >::operator+ ( const Vector< T > &  v) const [inline]
template<typename T>
Vector& Math::Vector< T >::operator+= ( const Vector< T > &  v) [inline]

References Math::Vector< T >::e.

template<typename T>
Vector Math::Vector< T >::operator- ( ) const [inline]
template<typename T>
Vector Math::Vector< T >::operator- ( const Vector< T > &  v) const [inline]
template<typename T>
Vector Math::Vector< T >::operator/ ( const T &  s) const [inline]
template<typename T>
bool Math::Vector< T >::operator== ( const Vector< T > &  v) const [inline]

References Math::Vector< T >::e.

template<typename T>
T& Math::Vector< T >::operator[] ( uint  i) [inline]

References Math::Vector< T >::e.

template<typename T>
const T& Math::Vector< T >::operator[] ( uint  i) const [inline]

References Math::Vector< T >::e.

template<typename T>
Vector<T> Math::Vector< T >::orthogonal ( ) const [inline]

Friends And Related Function Documentation

template<typename T>
Vector<T> Math::Cross ( const Vector< T > &  ,
const Vector< T > &   
) [friend]
template<typename T>
T Math::Dot ( const Vector< T > &  ,
const Vector< T > &   
) [friend]
template<typename T>
Vector<T> Math::operator* ( const T &  ,
const Vector< T > &   
) [friend]
template<typename T>
Vector<T> Math::operator/ ( const T &  ,
const Vector< T > &   
) [friend]
template<typename T>
Vector Max ( const Vector< T > &  v0,
const Vector< T > &  v1 
) [friend]
template<typename T>
Vector Min ( const Vector< T > &  v0,
const Vector< T > &  v1 
) [friend]
template<typename T>
ostream& operator<< ( ostream &  out,
const Vector< T > &  v 
) [friend]
template<typename T>
istream& operator>> ( istream &  in,
Vector< T > &  v 
) [friend]
template<typename T>
friend class Point< T > [friend]
template<typename T>
friend class Vector [friend]

Member Data Documentation

template<typename T>
T Math::Vector< T >::e[3] [private]
template<typename T>
const Vector< T > Math::Vector< T >::Epsilon [static]
template<typename T>
const Vector< T > Math::Vector< T >::Max [static]
template<typename T>
const Vector< T > Math::Vector< T >::Min [static]
template<typename T>
const Vector< T > Math::Vector< T >::One [static]
template<typename T>
const Vector< T > Math::Vector< T >::Zero [static]

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