$search

Vec2< T > Class Template Reference

#include <vec.h>

List of all members.

Public Member Functions

float dot (const Vec2< T > &a)
const T * getPointer () const
bool iszero ()
float length () const
float length2 () const
void normalize ()
Vec2< T > operator* (const T d)
float operator* (const Vec2< T > &v)
Vec2< T > & operator*= (const T d)
Vec2< T > operator+ (const Vec2< T > &a)
Vec2< T > & operator+= (const Vec2< T > &v)
Vec2< T > operator- (const Vec2< T > &a)
Vec2< T > & operator-= (const Vec2< T > &v)
Vec2< T > & operator/= (const T d)
Vec2< T > & operator= (const Vec2< T > &v)
operator[] (int i) const
T & operator[] (int i)
 Vec2 (const Vec2< T > &v)
 Vec2 (const T x, const T y)
 Vec2 ()
void zeroElements ()

Private Attributes

n [2]

Detailed Description

template<class T>
class Vec2< T >

Definition at line 24 of file vec.h.


Constructor & Destructor Documentation

template<class T>
Vec2< T >::Vec2 (  )  [inline]

Definition at line 35 of file vec.h.

template<class T>
Vec2< T >::Vec2 ( const T  x,
const T  y 
) [inline]

Definition at line 36 of file vec.h.

template<class T>
Vec2< T >::Vec2 ( const Vec2< T > &  v  )  [inline]

Definition at line 38 of file vec.h.


Member Function Documentation

template<class T>
float Vec2< T >::dot ( const Vec2< T > &  a  )  [inline]

Definition at line 93 of file vec.h.

template<class T>
const T* Vec2< T >::getPointer (  )  const [inline]

Definition at line 73 of file vec.h.

template<class T>
bool Vec2< T >::iszero (  )  [inline]

Definition at line 99 of file vec.h.

template<class T>
float Vec2< T >::length (  )  const [inline]

Definition at line 79 of file vec.h.

template<class T>
float Vec2< T >::length2 (  )  const [inline]

Definition at line 77 of file vec.h.

template<class T>
void Vec2< T >::normalize (  )  [inline]

Definition at line 84 of file vec.h.

template<class T>
Vec2<T> Vec2< T >::operator* ( const T  d  )  [inline]

Definition at line 69 of file vec.h.

template<class T>
float Vec2< T >::operator* ( const Vec2< T > &  v  )  [inline]

Definition at line 49 of file vec.h.

template<class T>
Vec2<T>& Vec2< T >::operator*= ( const T  d  )  [inline]

Definition at line 51 of file vec.h.

template<class T>
Vec2<T> Vec2< T >::operator+ ( const Vec2< T > &  a  )  [inline]

Definition at line 67 of file vec.h.

template<class T>
Vec2<T>& Vec2< T >::operator+= ( const Vec2< T > &  v  )  [inline]

Definition at line 45 of file vec.h.

template<class T>
Vec2<T> Vec2< T >::operator- ( const Vec2< T > &  a  )  [inline]

Definition at line 65 of file vec.h.

template<class T>
Vec2<T>& Vec2< T >::operator-= ( const Vec2< T > &  v  )  [inline]

Definition at line 47 of file vec.h.

template<class T>
Vec2<T>& Vec2< T >::operator/= ( const T  d  )  [inline]

Definition at line 53 of file vec.h.

template<class T>
Vec2<T>& Vec2< T >::operator= ( const Vec2< T > &  v  )  [inline]

Definition at line 43 of file vec.h.

template<class T>
T Vec2< T >::operator[] ( int  i  )  const [inline]

Definition at line 60 of file vec.h.

template<class T>
T& Vec2< T >::operator[] ( int  i  )  [inline]

Definition at line 58 of file vec.h.

template<class T>
void Vec2< T >::zeroElements (  )  [inline]

Definition at line 100 of file vec.h.


Member Data Documentation

template<class T>
T Vec2< T >::n[2] [private]

Definition at line 29 of file vec.h.


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


art_map
Author(s): David Li, Patrick Beeson, Bartley Gillen, Tarun Nimmagadda, Mickey Ristroph, Michael Quinlan, Jack O'Quin
autogenerated on Fri Mar 1 14:12:37 2013