arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

gutz::vec4< T > Class Template Reference

#include <vec4.h>

Inheritance diagram for gutz::vec4< T >:

gutz::quat< T > List of all members.

template<class T>
class gutz::vec4< T >


Public Member Functions

 vec4 ()
 vec4 (const T)
 vec4 (const T, const T, const T, const T)
 vec4 (const vec2< T > &, const T=0, const T=0)
 vec4 (const vec3< T > &, const T=0)
 ~vec4 ()
vec4operator+= (const vec4 &)
vec4operator-= (const vec4 &)
vec4operator *= (const T)
vec4operator/= (const T)
vec4operator *= (const vec4 &)
vec4operator/= (const vec4 &)
vec4operator *= (const mat4< T > &)
vec4 operator+ (const vec4 &) const
vec4 operator- (const vec4 &) const
vec4 operator- () const
vec4 operator * (const T) const
vec4 operator/ (const T) const
vec4 operator * (const vec4 &) const
vec4 operator/ (const vec4 &) const
bool operator== (const vec4 &) const
bool operator!= (const vec4 &) const
bool operator< (const vec4 &) const
bool operator> (const vec4 &) const
bool operator<= (const vec4 &) const
bool operator>= (const vec4 &) const
T * v ()
const T * v () const
void set (const T, const T, const T, const T)
T & operator[] (const int)
const T & operator[] (const int) const
norm () const
norm2 () const
normalize ()
vec4 abs () const
dot (const vec4 &) const
bool equal (const vec4 &, T) const

Constructor & Destructor Documentation

template<class T>
gutz::vec4< T >::vec4  )  [inline]
 

Definition at line 183 of file vec4.h.

References w, x, y, and z.

Referenced by gutz::vec4< T >::operator *(), gutz::vec4< T >::operator+(), gutz::vec4< T >::operator-(), and gutz::vec4< T >::operator/().

template<class T>
gutz::vec4< T >::vec4 const  T  )  [inline]
 

Definition at line 187 of file vec4.h.

References w, x, y, and z.

template<class T>
gutz::vec4< T >::vec4 const  T,
const  T,
const  T,
const  T
[inline]
 

Definition at line 191 of file vec4.h.

References w, x, y, and z.

template<class T>
gutz::vec4< T >::vec4 const vec2< T > &  ,
const  T = 0,
const  T = 0
[inline]
 

Definition at line 195 of file vec4.h.

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

template<class T>
gutz::vec4< T >::vec4 const vec3< T > &  ,
const  T = 0
[inline]
 

Definition at line 199 of file vec4.h.

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

template<class T>
gutz::vec4< T >::~vec4  )  [inline]
 

Definition at line 47 of file vec4.h.


Member Function Documentation

template<class T>
vec4< T > gutz::vec4< T >::abs  )  const [inline]
 

Definition at line 415 of file vec4.h.

References mm_abs, gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
T gutz::vec4< T >::dot const vec4< T > &   )  const [inline]
 

Definition at line 422 of file vec4.h.

References v, gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
bool gutz::vec4< T >::equal const vec4< T > &  ,
const [inline]
 

Definition at line 429 of file vec4.h.

References v, gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
T gutz::vec4< T >::norm  )  const [inline]
 

Definition at line 390 of file vec4.h.

References gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

Referenced by gutz::vec4< T >::normalize().

template<class T>
T gutz::vec4< T >::norm2  )  const [inline]
 

Definition at line 397 of file vec4.h.

References gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
T gutz::vec4< T >::normalize  )  [inline]
 

Definition at line 404 of file vec4.h.

References gutz::vec4< T >::norm(), gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > gutz::vec4< T >::operator * const vec4< T > &   )  const [inline]
 

Definition at line 299 of file vec4.h.

References v, gutz::vec4< T >::vec4(), gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > gutz::vec4< T >::operator * const  T  )  const [inline]
 

Definition at line 285 of file vec4.h.

References gutz::vec4< T >::vec4(), gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > & gutz::vec4< T >::operator *= const mat4< T > &   )  [inline]
 

Definition at line 252 of file vec4.h.

References gutz::mat4< T >::m, gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > & gutz::vec4< T >::operator *= const vec4< T > &   )  [inline]
 

Definition at line 236 of file vec4.h.

References v, gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > & gutz::vec4< T >::operator *= const  T  )  [inline]
 

Definition at line 220 of file vec4.h.

References gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
bool gutz::vec4< T >::operator!= const vec4< T > &   )  const [inline]
 

Definition at line 320 of file vec4.h.

References v, gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > gutz::vec4< T >::operator+ const vec4< T > &   )  const [inline]
 

Definition at line 264 of file vec4.h.

References v, gutz::vec4< T >::vec4(), gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > & gutz::vec4< T >::operator+= const vec4< T > &   )  [inline]
 

Definition at line 204 of file vec4.h.

References v, gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > gutz::vec4< T >::operator-  )  const [inline]
 

Definition at line 278 of file vec4.h.

References gutz::vec4< T >::vec4(), gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > gutz::vec4< T >::operator- const vec4< T > &   )  const [inline]
 

Definition at line 271 of file vec4.h.

References v, gutz::vec4< T >::vec4(), gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > & gutz::vec4< T >::operator-= const vec4< T > &   )  [inline]
 

Definition at line 212 of file vec4.h.

References v, gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > gutz::vec4< T >::operator/ const vec4< T > &   )  const [inline]
 

Definition at line 306 of file vec4.h.

References v, gutz::vec4< T >::vec4(), gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > gutz::vec4< T >::operator/ const  T  )  const [inline]
 

Definition at line 292 of file vec4.h.

References gutz::vec4< T >::vec4(), gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > & gutz::vec4< T >::operator/= const vec4< T > &   )  [inline]
 

Definition at line 244 of file vec4.h.

References v, gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
vec4< T > & gutz::vec4< T >::operator/= const  T  )  [inline]
 

Definition at line 228 of file vec4.h.

References gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
bool gutz::vec4< T >::operator< const vec4< T > &   )  const [inline]
 

Definition at line 327 of file vec4.h.

References v, gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
bool gutz::vec4< T >::operator<= const vec4< T > &   )  const [inline]
 

Definition at line 341 of file vec4.h.

References v, gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
bool gutz::vec4< T >::operator== const vec4< T > &   )  const [inline]
 

Definition at line 313 of file vec4.h.

References v, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
bool gutz::vec4< T >::operator> const vec4< T > &   )  const [inline]
 

Definition at line 334 of file vec4.h.

References v, gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
bool gutz::vec4< T >::operator>= const vec4< T > &   )  const [inline]
 

Definition at line 348 of file vec4.h.

References v, gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
const T & gutz::vec4< T >::operator[] const  int  )  const [inline]
 

Definition at line 383 of file vec4.h.

References gutz::vec4< T >::v().

template<class T>
T & gutz::vec4< T >::operator[] const  int  )  [inline]
 

Definition at line 376 of file vec4.h.

References gutz::vec4< T >::v().

template<class T>
void gutz::vec4< T >::set const  T,
const  T,
const  T,
const  T
[inline]
 

Definition at line 369 of file vec4.h.

References gutz::vec4< T >::w, gutz::vec4< T >::x, gutz::vec4< T >::y, and gutz::vec4< T >::z.

template<class T>
const T * gutz::vec4< T >::v  )  const [inline]
 

Definition at line 362 of file vec4.h.

References gutz::vec4< T >::x.

template<class T>
T * gutz::vec4< T >::v  )  [inline]
 

Definition at line 355 of file vec4.h.

References gutz::vec4< T >::x.

Referenced by gutz::vec4< T >::operator[]().


Member Data Documentation

template<class T>
T gutz::vec4< T >::A
 

Definition at line 93 of file vec4.h.

template<class T>
T gutz::vec4< T >::B
 

Definition at line 92 of file vec4.h.

template<class T>
T gutz::vec4< T >::G
 

Definition at line 91 of file vec4.h.

template<class T>
T gutz::vec4< T >::q
 

Definition at line 93 of file vec4.h.

template<class T>
T gutz::vec4< T >::r
 

Definition at line 92 of file vec4.h.

template<class T>
T gutz::vec4< T >::R
 

Definition at line 90 of file vec4.h.

template<class T>
T gutz::vec4< T >::s
 

Definition at line 90 of file vec4.h.

template<class T>
T gutz::vec4< T >::t
 

Definition at line 91 of file vec4.h.

template<class T>
T gutz::vec4< T >::v0
 

Definition at line 90 of file vec4.h.

template<class T>
T gutz::vec4< T >::v1
 

Definition at line 91 of file vec4.h.

template<class T>
T gutz::vec4< T >::v2
 

Definition at line 92 of file vec4.h.

template<class T>
T gutz::vec4< T >::v3
 

Definition at line 93 of file vec4.h.

template<class T>
T gutz::vec4< T >::w
 

Definition at line 93 of file vec4.h.

Referenced by gutz::vec4< T >::abs(), gutz::add_quats(), gutz::quat< T >::conj(), gutz::vec4< T >::dot(), gutz::vec4< T >::equal(), gutz::quat< T >::inv(), gutz::mat4< T >::mat4(), gutz::quat< T >::mult(), gutz::vec4< T >::norm(), gutz::vec4< T >::norm2(), gutz::vec4< T >::normalize(), gutz::vec4< T >::operator *(), gutz::vec4< T >::operator *=(), gutz::vec4< T >::operator!=(), gutz::vec4< T >::operator+(), gutz::vec4< T >::operator+=(), gutz::vec4< T >::operator-(), gutz::vec4< T >::operator-=(), gutz::vec4< T >::operator/(), gutz::vec4< T >::operator/=(), gutz::vec4< T >::operator<(), gutz::vec4< T >::operator<=(), gutz::vec4< T >::operator>(), gutz::vec4< T >::operator>=(), gutz::quat< T >::rot(), gutz::vec4< T >::set(), and gutz::quat< T >::set().

template<class T>
T gutz::vec4< T >::x
 

Definition at line 90 of file vec4.h.

Referenced by gutz::vec4< T >::abs(), gutz::add_quats(), gutz::quat< T >::conj(), gutz::vec4< T >::dot(), gutz::vec4< T >::equal(), gutz::quat< T >::inv(), gutz::mat4< T >::mat4(), gutz::quat< T >::mult(), gutz::vec4< T >::norm(), gutz::vec4< T >::norm2(), gutz::vec4< T >::normalize(), gutz::vec4< T >::operator *(), gutz::vec4< T >::operator *=(), gutz::vec4< T >::operator!=(), gutz::vec4< T >::operator+(), gutz::vec4< T >::operator+=(), gutz::vec4< T >::operator-(), gutz::vec4< T >::operator-=(), gutz::vec4< T >::operator/(), gutz::vec4< T >::operator/=(), gutz::vec4< T >::operator<(), gutz::vec4< T >::operator<=(), gutz::vec4< T >::operator==(), gutz::vec4< T >::operator>(), gutz::vec4< T >::operator>=(), gutz::quat< T >::rot(), gutz::vec4< T >::set(), gutz::quat< T >::set(), and gutz::vec4< T >::v().

template<class T>
T gutz::vec4< T >::y
 

Definition at line 91 of file vec4.h.

Referenced by gutz::vec4< T >::abs(), gutz::add_quats(), gutz::quat< T >::conj(), gutz::vec4< T >::dot(), gutz::vec4< T >::equal(), gutz::quat< T >::inv(), gutz::mat4< T >::mat4(), gutz::quat< T >::mult(), gutz::vec4< T >::norm(), gutz::vec4< T >::norm2(), gutz::vec4< T >::normalize(), gutz::vec4< T >::operator *(), gutz::vec4< T >::operator *=(), gutz::vec4< T >::operator!=(), gutz::vec4< T >::operator+(), gutz::vec4< T >::operator+=(), gutz::vec4< T >::operator-(), gutz::vec4< T >::operator-=(), gutz::vec4< T >::operator/(), gutz::vec4< T >::operator/=(), gutz::vec4< T >::operator<(), gutz::vec4< T >::operator<=(), gutz::vec4< T >::operator==(), gutz::vec4< T >::operator>(), gutz::vec4< T >::operator>=(), gutz::quat< T >::rot(), gutz::vec4< T >::set(), and gutz::quat< T >::set().

template<class T>
T gutz::vec4< T >::z
 

Definition at line 92 of file vec4.h.

Referenced by gutz::vec4< T >::abs(), gutz::add_quats(), gutz::quat< T >::conj(), gutz::vec4< T >::dot(), gutz::vec4< T >::equal(), gutz::quat< T >::inv(), gutz::mat4< T >::mat4(), gutz::quat< T >::mult(), gutz::vec4< T >::norm(), gutz::vec4< T >::norm2(), gutz::vec4< T >::normalize(), gutz::vec4< T >::operator *(), gutz::vec4< T >::operator *=(), gutz::vec4< T >::operator!=(), gutz::vec4< T >::operator+(), gutz::vec4< T >::operator+=(), gutz::vec4< T >::operator-(), gutz::vec4< T >::operator-=(), gutz::vec4< T >::operator/(), gutz::vec4< T >::operator/=(), gutz::vec4< T >::operator<(), gutz::vec4< T >::operator<=(), gutz::vec4< T >::operator==(), gutz::vec4< T >::operator>(), gutz::vec4< T >::operator>=(), gutz::quat< T >::rot(), gutz::vec4< T >::set(), and gutz::quat< T >::set().


The documentation for this class was generated from the following file:
Send questions, comments, and bug reports to:
jmk