vectorn< T, 4 > Class Template Reference

#include <vector4.h>

Collaboration diagram for vectorn< T, 4 >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T value_type

Public Member Functions

 vectorn ()
 vectorn (T vx, T vy, T vz, T vw)
 vectorn (const T *v)
 vectorn (const vectorn< T, 4 > &v)
const vectorn< T, 4 > operator+= (const vectorn< T, 4 > &v)
const vectorn< T, 4 > operator-= (const vectorn< T, 4 > &v)
const vectorn< T, 4 > operator *= (const T &num)
const vectorn< T, 4 > operator/= (const T &num)
const bool operator== (const vectorn< T, 4 > &v) const
const bool operator!= (const vectorn< T, 4 > &v) const
const vectorn< T, 4 > operator- () const
const vectorn< T, 4 > operator * (const T &num) const
const vectorn< T, 4 > operator/ (const T &num) const
size_t size () const
 operator T * ()
 operator const T * () const

Public Attributes

x
y
z
w

Friends

std::ostream & operator<< (std::ostream &out, const vectorn< T, 4 > &v)
const vectorn< T, 4 > operator+ (const vectorn< T, 4 > &v1, const vectorn< T, 4 > &v2)
const vectorn< T, 4 > operator- (const vectorn< T, 4 > &v1, const vectorn< T, 4 > &v2)
const T operator * (const vectorn< T, 4 > &v1, const vectorn< T, 4 > &v2)
const vectorn< T, 4 > operator * (const T &s, const vectorn< T, 4 > &v)

Detailed Description

template<typename T>
class vectorn< T, 4 >

Author:
Cengiz Terzibas


Member Typedef Documentation

template<typename T>
typedef T vectorn< T, 4 >::value_type


Constructor & Destructor Documentation

template<typename T>
vectorn< T, 4 >::vectorn (  )  [inline]

template<typename T>
vectorn< T, 4 >::vectorn ( vx,
vy,
vz,
vw 
) [inline]

template<typename T>
vectorn< T, 4 >::vectorn ( const T *  v  )  [inline]

template<typename T>
vectorn< T, 4 >::vectorn ( const vectorn< T, 4 > &  v  )  [inline]


Member Function Documentation

template<typename T>
const vectorn<T,4> vectorn< T, 4 >::operator+= ( const vectorn< T, 4 > &  v  )  [inline]

template<typename T>
const vectorn<T,4> vectorn< T, 4 >::operator-= ( const vectorn< T, 4 > &  v  )  [inline]

template<typename T>
const vectorn<T,4> vectorn< T, 4 >::operator *= ( const T &  num  )  [inline]

template<typename T>
const vectorn<T,4> vectorn< T, 4 >::operator/= ( const T &  num  )  [inline]

template<typename T>
const bool vectorn< T, 4 >::operator== ( const vectorn< T, 4 > &  v  )  const [inline]

template<typename T>
const bool vectorn< T, 4 >::operator!= ( const vectorn< T, 4 > &  v  )  const [inline]

template<typename T>
const vectorn<T,4> vectorn< T, 4 >::operator- (  )  const [inline]

template<typename T>
const vectorn<T,4> vectorn< T, 4 >::operator * ( const T &  num  )  const [inline]

template<typename T>
const vectorn<T,4> vectorn< T, 4 >::operator/ ( const T &  num  )  const [inline]

template<typename T>
size_t vectorn< T, 4 >::size (  )  const [inline]

template<typename T>
vectorn< T, 4 >::operator T * (  )  [inline]

template<typename T>
vectorn< T, 4 >::operator const T * (  )  const [inline]


Friends And Related Function Documentation

template<typename T>
std::ostream& operator<< ( std::ostream &  out,
const vectorn< T, 4 > &  v 
) [friend]

template<typename T>
const vectorn<T,4> operator+ ( const vectorn< T, 4 > &  v1,
const vectorn< T, 4 > &  v2 
) [friend]

template<typename T>
const vectorn<T,4> operator- ( const vectorn< T, 4 > &  v1,
const vectorn< T, 4 > &  v2 
) [friend]

template<typename T>
const T operator * ( const vectorn< T, 4 > &  v1,
const vectorn< T, 4 > &  v2 
) [friend]

template<typename T>
const vectorn<T,4> operator * ( const T &  s,
const vectorn< T, 4 > &  v 
) [friend]


Member Data Documentation

template<typename T>
T vectorn< T, 4 >::x

template<typename T>
T vectorn< T, 4 >::y

template<typename T>
T vectorn< T, 4 >::z

template<typename T>
T vectorn< T, 4 >::w


The documentation for this class was generated from the following file:
Generated on Mon Sep 10 17:42:12 2007 for TinyMath by  doxygen 1.5.2