Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::Maths::TVector4 Class Template Reference

Template Class: TVector4. More...

#include <Vector4.h>

Inheritance diagram for Teddy::Maths::TVector4:

Inheritance graph
[legend]
Collaboration diagram for Teddy::Maths::TVector4:

Collaboration graph
[legend]
List of all members.

Public Methods

 TVector4 ()
 TVector4 (const T a, const T b, const T c, const T d)
 TVector4 (const T t)
 TVector4 (const T *pt)
 TVector4 (const TVector< T > &vec)
 TVector4 (const TVector< T > &vec, const T t)
 TVector4 (const TVector4< T > &vec)
 operator T * ()
T & operator[] (const int n)
 operator const T * () const
operator[] (const int n) const
TVector4< T > operator- () const
void operator= (const T t)
void operator= (const T *pt)
void operator= (const TVector< T > &vec)
void operator= (const TVector4< T > &vec)
bool operator== (const TVector4< T > &vec) const
bool operator!= (const TVector4< T > &vec) const
TVector4< T > operator+ (const T t) const
TVector4< T > operator- (const T t) const
TVector4< T > operator * (const T t) const
TVector4< T > operator/ (const T t) const
const TVector4< T > & operator+= (const T t)
const TVector4< T > & operator-= (const T t)
const TVector4< T > & operator *= (const T t)
const TVector4< T > & operator/= (const T t)
TVector4< T > operator+ (const TVector4< T > &vec) const
TVector4< T > operator- (const TVector4< T > &vec) const
TVector4< T > operator * (const TVector4< T > &vec) const
TVector4< T > operator/ (const TVector4< T > &vec) const
const TVector4< T > & operator+= (const TVector4< T > &vec)
const TVector4< T > & operator-= (const TVector4< T > &vec)
const TVector4< T > & operator *= (const TVector4< T > &vec)
const TVector4< T > & operator/= (const TVector4< T > &vec)
operator| (const TVector4< T > &vec) const
magnitudeSquared () const
magnitude () const
void normalize ()

Public Attributes

v [4]

Detailed Description

template<typename T>
class Teddy::Maths::TVector4< T >

Template Class: TVector4.

This template class implements a simple 4D vector with x, y, z, and w coordinates. Like TVector, it is templatized and macros are defined for the most common types.

Definition at line 68 of file Vector4.h.


Constructor & Destructor Documentation

template<typename T>
Teddy::Maths::TVector4< T >::TVector4   [inline]
 

Definition at line 74 of file Vector4.h.

template<typename T>
Teddy::Maths::TVector4< T >::TVector4 const T    a,
const T    b,
const T    c,
const T    d
[inline]
 

Definition at line 76 of file Vector4.h.

References v.

template<typename T>
Teddy::Maths::TVector4< T >::TVector4 const T    t [inline]
 

Definition at line 83 of file Vector4.h.

template<typename T>
Teddy::Maths::TVector4< T >::TVector4 const T *    pt [inline]
 

Definition at line 84 of file Vector4.h.

template<typename T>
Teddy::Maths::TVector4< T >::TVector4 const TVector< T > &    vec [inline]
 

Definition at line 85 of file Vector4.h.

template<typename T>
Teddy::Maths::TVector4< T >::TVector4 const TVector< T > &    vec,
const T    t
[inline]
 

Definition at line 86 of file Vector4.h.

References v.

template<typename T>
Teddy::Maths::TVector4< T >::TVector4 const TVector4< T > &    vec [inline]
 

Definition at line 87 of file Vector4.h.


Member Function Documentation

template<typename T>
T Teddy::Maths::TVector4< T >::magnitude   const [inline]
 

Definition at line 140 of file Vector4.h.

References magnitudeSquared.

template<typename T>
T Teddy::Maths::TVector4< T >::magnitudeSquared   const [inline]
 

Definition at line 139 of file Vector4.h.

References v.

Referenced by magnitude.

template<typename T>
void Teddy::Maths::TVector4< T >::normalize   [inline]
 

Definition at line 141 of file Vector4.h.

template<typename T>
TVector4<T> Teddy::Maths::TVector4< T >::operator * const TVector4< T > &    vec const [inline]
 

Definition at line 128 of file Vector4.h.

References v.

template<typename T>
TVector4<T> Teddy::Maths::TVector4< T >::operator * const T    t const [inline]
 

Definition at line 118 of file Vector4.h.

References v.

template<typename T>
const TVector4<T>& Teddy::Maths::TVector4< T >::operator *= const TVector4< T > &    vec [inline]
 

Definition at line 132 of file Vector4.h.

References v.

template<typename T>
const TVector4<T>& Teddy::Maths::TVector4< T >::operator *= const T    t [inline]
 

Definition at line 122 of file Vector4.h.

References v.

template<typename T>
Teddy::Maths::TVector4< T >::operator const T *   const [inline]
 

Definition at line 92 of file Vector4.h.

References v.

template<typename T>
Teddy::Maths::TVector4< T >::operator T *   [inline]
 

Definition at line 90 of file Vector4.h.

References v.

template<typename T>
bool Teddy::Maths::TVector4< T >::operator!= const TVector4< T > &    vec const [inline]
 

Definition at line 111 of file Vector4.h.

References v.

template<typename T>
TVector4<T> Teddy::Maths::TVector4< T >::operator+ const TVector4< T > &    vec const [inline]
 

Definition at line 126 of file Vector4.h.

References v.

template<typename T>
TVector4<T> Teddy::Maths::TVector4< T >::operator+ const T    t const [inline]
 

Definition at line 116 of file Vector4.h.

References v.

template<typename T>
const TVector4<T>& Teddy::Maths::TVector4< T >::operator+= const TVector4< T > &    vec [inline]
 

Definition at line 130 of file Vector4.h.

References v.

template<typename T>
const TVector4<T>& Teddy::Maths::TVector4< T >::operator+= const T    t [inline]
 

Definition at line 120 of file Vector4.h.

References v.

template<typename T>
TVector4<T> Teddy::Maths::TVector4< T >::operator- const TVector4< T > &    vec const [inline]
 

Definition at line 127 of file Vector4.h.

References v.

template<typename T>
TVector4<T> Teddy::Maths::TVector4< T >::operator- const T    t const [inline]
 

Definition at line 117 of file Vector4.h.

References v.

template<typename T>
TVector4<T> Teddy::Maths::TVector4< T >::operator-   const [inline]
 

Definition at line 94 of file Vector4.h.

References v.

template<typename T>
const TVector4<T>& Teddy::Maths::TVector4< T >::operator-= const TVector4< T > &    vec [inline]
 

Definition at line 131 of file Vector4.h.

References v.

template<typename T>
const TVector4<T>& Teddy::Maths::TVector4< T >::operator-= const T    t [inline]
 

Definition at line 121 of file Vector4.h.

References v.

template<typename T>
TVector4<T> Teddy::Maths::TVector4< T >::operator/ const TVector4< T > &    vec const [inline]
 

Definition at line 129 of file Vector4.h.

References v.

template<typename T>
TVector4<T> Teddy::Maths::TVector4< T >::operator/ const T    t const [inline]
 

Definition at line 119 of file Vector4.h.

References v.

template<typename T>
const TVector4<T>& Teddy::Maths::TVector4< T >::operator/= const TVector4< T > &    vec [inline]
 

Definition at line 133 of file Vector4.h.

References v.

template<typename T>
const TVector4<T>& Teddy::Maths::TVector4< T >::operator/= const T    t [inline]
 

Definition at line 123 of file Vector4.h.

References v.

template<typename T>
void Teddy::Maths::TVector4< T >::operator= const TVector4< T > &    vec [inline]
 

Definition at line 100 of file Vector4.h.

References v.

template<typename T>
void Teddy::Maths::TVector4< T >::operator= const TVector< T > &    vec [inline]
 

Definition at line 99 of file Vector4.h.

References v.

template<typename T>
void Teddy::Maths::TVector4< T >::operator= const T *    pt [inline]
 

Definition at line 98 of file Vector4.h.

References v.

template<typename T>
void Teddy::Maths::TVector4< T >::operator= const T    t [inline]
 

Definition at line 97 of file Vector4.h.

References v.

template<typename T>
bool Teddy::Maths::TVector4< T >::operator== const TVector4< T > &    vec const [inline]
 

Definition at line 102 of file Vector4.h.

References v, and VECTOR4_EPSILON.

template<typename T>
T Teddy::Maths::TVector4< T >::operator[] const int    n const [inline]
 

Definition at line 93 of file Vector4.h.

References v.

template<typename T>
T& Teddy::Maths::TVector4< T >::operator[] const int    n [inline]
 

Definition at line 91 of file Vector4.h.

References v.

template<typename T>
T Teddy::Maths::TVector4< T >::operator| const TVector4< T > &    vec const [inline]
 

Definition at line 136 of file Vector4.h.

References v.


Member Data Documentation

template<typename T>
T Teddy::Maths::TVector4::v[4]
 

Definition at line 70 of file Vector4.h.

Referenced by magnitudeSquared, operator *, operator *=, operator const T *, operator T *, operator!=, operator+, operator+=, operator-, operator-=, operator/, operator/=, operator=, operator==, operator[], operator|, Teddy::Maths::TCrossVector4::TCrossVector4, and TVector4.


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