Public Member Functions | Public Attributes

Vector3< T > Class Template Reference

#include <vector3.h>

Collaboration diagram for Vector3< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Vector3 ()
 Vector3 (const T x0, const T y0, const T z0)
void operator() (const T x0, const T y0, const T z0)
bool operator== (const Vector3< T > &v)
bool operator!= (const Vector3< T > &v)
Vector3< T > operator- (void) const
Vector3< T > operator+ (const Vector3< T > &v) const
Vector3< T > operator- (const Vector3< T > &v) const
Vector3< T > operator* (const T num) const
Vector3< T > operator/ (const T num) const
Vector3< T > & operator+= (const Vector3< T > &v)
Vector3< T > & operator-= (const Vector3< T > &v)
Vector3< T > & operator*= (const T num)
Vector3< T > & operator/= (const T num)
operator* (const Vector3< T > &v) const
Vector3< T > operator% (const Vector3< T > &v) const
length_squared () const
float length () const
void normalize ()
Vector3< T > normalized () const
void reflect (const Vector3< T > &n)
void project (const Vector3< T > &v)
Vector3< T > projected (const Vector3< T > &v)
angle (const Vector3< T > &v1, const Vector3< T > &v2)
angle_normalized (const Vector3< T > &v1, const Vector3< T > &v2)

Public Attributes

x
y
z

Detailed Description

template<typename T>
class Vector3< T >

Definition at line 48 of file vector3.h.


Constructor & Destructor Documentation

template<typename T>
Vector3< T >::Vector3 (  )  [inline]
template<typename T>
Vector3< T >::Vector3 ( const T  x0,
const T  y0,
const T  z0 
) [inline]

Member Function Documentation

template<typename T>
T Vector3< T >::angle ( const Vector3< T > &  v1,
const Vector3< T > &  v2 
) [inline]

Definition at line 169 of file vector3.h.

template<typename T>
T Vector3< T >::angle_normalized ( const Vector3< T > &  v1,
const Vector3< T > &  v2 
) [inline]

Definition at line 173 of file vector3.h.

template<typename T>
float Vector3< T >::length (  )  const [inline]

Definition at line 141 of file vector3.h.

template<typename T>
T Vector3< T >::length_squared (  )  const [inline]

Definition at line 137 of file vector3.h.

template<typename T>
void Vector3< T >::normalize ( void   )  [inline]

Definition at line 145 of file vector3.h.

template<typename T>
Vector3<T> Vector3< T >::normalized (  )  const [inline]

Definition at line 149 of file vector3.h.

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

Definition at line 68 of file vector3.h.

template<typename T>
Vector3<T> Vector3< T >::operator% ( const Vector3< T > &  v  )  const [inline]

Definition at line 130 of file vector3.h.

template<typename T>
void Vector3< T >::operator() ( const T  x0,
const T  y0,
const T  z0 
) [inline]

Definition at line 60 of file vector3.h.

template<typename T>
T Vector3< T >::operator* ( const Vector3< T > &  v  )  const [inline]

Definition at line 126 of file vector3.h.

template<typename T>
Vector3<T> Vector3< T >::operator* ( const T  num  )  const [inline]

Definition at line 84 of file vector3.h.

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

Definition at line 112 of file vector3.h.

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

Definition at line 76 of file vector3.h.

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

Definition at line 98 of file vector3.h.

template<typename T>
Vector3<T> Vector3< T >::operator- ( void   )  const [inline]

Definition at line 72 of file vector3.h.

template<typename T>
Vector3<T> Vector3< T >::operator- ( const Vector3< T > &  v  )  const [inline]

Definition at line 80 of file vector3.h.

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

Definition at line 105 of file vector3.h.

template<typename T>
Vector3<T> Vector3< T >::operator/ ( const T  num  )  const [inline]

Definition at line 91 of file vector3.h.

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

Definition at line 119 of file vector3.h.

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

Definition at line 64 of file vector3.h.

template<typename T>
void Vector3< T >::project ( const Vector3< T > &  v  )  [inline]

Definition at line 161 of file vector3.h.

template<typename T>
Vector3<T> Vector3< T >::projected ( const Vector3< T > &  v  )  [inline]

Definition at line 165 of file vector3.h.

template<typename T>
void Vector3< T >::reflect ( const Vector3< T > &  n  )  [inline]

Definition at line 153 of file vector3.h.


Member Data Documentation

template<typename T>
T Vector3< T >::x

Definition at line 51 of file vector3.h.

template<typename T>
T Vector3< T >::y

Definition at line 51 of file vector3.h.

template<typename T>
T Vector3< T >::z

Definition at line 51 of file vector3.h.


The documentation for this class was generated from the following file: