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

gutz::vec2< T > Class Template Reference

#include <vec2.h>

List of all members.

template<class T>
class gutz::vec2< T >


Public Member Functions

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

Constructor & Destructor Documentation

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

Definition at line 179 of file vec2.h.

References x, and y.

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

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

Definition at line 184 of file vec2.h.

References x, and y.

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

Definition at line 188 of file vec2.h.

References x, and y.

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

Definition at line 192 of file vec2.h.

References v, x, and y.

template<class T>
gutz::vec2< T >::vec2 const vec3< T > &   )  [inline]
 

Definition at line 196 of file vec2.h.

References v, x, and y.

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

Definition at line 200 of file vec2.h.

References v, x, and y.

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

Definition at line 49 of file vec2.h.


Member Function Documentation

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

Definition at line 420 of file vec2.h.

References mm_abs, gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

Definition at line 427 of file vec2.h.

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

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

Definition at line 434 of file vec2.h.

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

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

Definition at line 396 of file vec2.h.

References gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

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

Definition at line 403 of file vec2.h.

References gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

Definition at line 410 of file vec2.h.

References gutz::vec2< T >::norm(), gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

Definition at line 305 of file vec2.h.

References v, gutz::vec2< T >::vec2(), gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

Definition at line 284 of file vec2.h.

References gutz::vec2< T >::vec2(), gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

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

Definition at line 247 of file vec2.h.

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

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

Definition at line 231 of file vec2.h.

References gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

Definition at line 326 of file vec2.h.

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

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

Definition at line 263 of file vec2.h.

References v, gutz::vec2< T >::vec2(), gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

Definition at line 215 of file vec2.h.

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

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

Definition at line 277 of file vec2.h.

References gutz::vec2< T >::vec2(), gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

Definition at line 270 of file vec2.h.

References v, gutz::vec2< T >::vec2(), gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

Definition at line 223 of file vec2.h.

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

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

Definition at line 312 of file vec2.h.

References v, gutz::vec2< T >::vec2(), gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

Definition at line 291 of file vec2.h.

References gutz::vec2< T >::vec2(), gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

Definition at line 255 of file vec2.h.

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

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

Definition at line 239 of file vec2.h.

References gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

Definition at line 333 of file vec2.h.

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

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

Definition at line 347 of file vec2.h.

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

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

Definition at line 205 of file vec2.h.

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

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

Definition at line 319 of file vec2.h.

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

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

Definition at line 340 of file vec2.h.

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

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

Definition at line 354 of file vec2.h.

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

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

Definition at line 389 of file vec2.h.

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

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

Definition at line 382 of file vec2.h.

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

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

Definition at line 375 of file vec2.h.

References gutz::vec2< T >::x, and gutz::vec2< T >::y.

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

Definition at line 368 of file vec2.h.

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

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

Definition at line 361 of file vec2.h.

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

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


Member Data Documentation

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

Definition at line 94 of file vec2.h.

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

Definition at line 93 of file vec2.h.

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

Definition at line 93 of file vec2.h.

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

Definition at line 94 of file vec2.h.

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

Definition at line 93 of file vec2.h.

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

Definition at line 94 of file vec2.h.

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

Definition at line 93 of file vec2.h.

Referenced by gutz::vec2< T >::abs(), gutz::vec2< T >::dot(), gutz::vec2< T >::equal(), gutz::Camera::getPickPos(), gutz::mat2< T >::mat2(), gutz::vec2< T >::norm(), gutz::vec2< T >::norm2(), gutz::vec2< T >::normalize(), gutz::vec2< T >::operator *(), gutz::vec2< T >::operator *=(), gutz::vec2< T >::operator!=(), gutz::vec2< T >::operator+(), gutz::vec2< T >::operator+=(), gutz::vec2< T >::operator-(), gutz::vec2< T >::operator-=(), gutz::vec2< T >::operator/(), gutz::vec2< T >::operator/=(), gutz::vec2< T >::operator<(), gutz::vec2< T >::operator<=(), gutz::vec2< T >::operator=(), gutz::vec2< T >::operator==(), gutz::vec2< T >::operator>(), gutz::vec2< T >::operator>=(), gutz::vec2< T >::set(), gutz::trackball(), and gutz::vec2< T >::v().

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

Definition at line 94 of file vec2.h.

Referenced by gutz::vec2< T >::abs(), gutz::vec2< T >::dot(), gutz::vec2< T >::equal(), gutz::Camera::getPickPos(), gutz::mat2< T >::mat2(), gutz::vec2< T >::norm(), gutz::vec2< T >::norm2(), gutz::vec2< T >::normalize(), gutz::vec2< T >::operator *(), gutz::vec2< T >::operator *=(), gutz::vec2< T >::operator!=(), gutz::vec2< T >::operator+(), gutz::vec2< T >::operator+=(), gutz::vec2< T >::operator-(), gutz::vec2< T >::operator-=(), gutz::vec2< T >::operator/(), gutz::vec2< T >::operator/=(), gutz::vec2< T >::operator<(), gutz::vec2< T >::operator<=(), gutz::vec2< T >::operator=(), gutz::vec2< T >::operator==(), gutz::vec2< T >::operator>(), gutz::vec2< T >::operator>=(), gutz::vec2< T >::set(), and gutz::trackball().


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