TVector3< T > Struct Template Reference

#include <TVector3.h>

List of all members.

Public Member Functions

 TVector3 ()
 TVector3 (const T &v)
 TVector3 (const T &x, const T &y, const T &z)
 TVector3 (const TVector3< T > &other)
const TVector3< T > & operator= (const TVector3< T > &other)
const TVector3< T > operator+ (const TVector3< T > &other) const
const TVector3< T > & operator+= (const TVector3< T > &other)
const TVector3< T > operator- (const TVector3< T > &other) const
const TVector3< T > & operator-= (const TVector3< T > &other)
const TVector3< T > operator* (const T &factor) const
const TVector3< T > & operator*= (const T &factor)
const TVector3< T > operator/ (const T &quot) const
const TVector3< T > & operator/= (const T &quot)
const TVector3< T > operator* (const TVector3< T > &other) const
const TVector3< T > operator- () const
bool operator== (const TVector3< T > &other)
bool operator!= (const TVector3< T > &other)
T & operator[] (const byte &i)
const T & operator[] (const byte &i) const
void Set (const T &x, const T &y, const T &z)
const float Length () const
const float LengthSqr () const
void Normalize ()
const T Dot (const TVector3< T > &other) const
void LookAlongRot (TVector3< T > vDir)
void ShortestRot (const TVector3< T > &vFrom, const TVector3< T > &vTo)
void Log (word wTargetLog) const

Public Attributes

m_X
m_Y
m_Z


Detailed Description

template<typename T>
struct TVector3< T >

Definition at line 29 of file TVector3.h.


Constructor & Destructor Documentation

template<typename T >
TVector3< T >::TVector3 (  )  [inline]

Definition at line 37 of file TVector3.h.

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

Definition at line 38 of file TVector3.h.

template<typename T >
TVector3< T >::TVector3 ( const T &  x,
const T &  y,
const T &  z 
) [inline]

Definition at line 39 of file TVector3.h.

template<typename T >
TVector3< T >::TVector3 ( const TVector3< T > &  other  )  [inline]

Definition at line 40 of file TVector3.h.


Member Function Documentation

template<typename T >
const T TVector3< T >::Dot ( const TVector3< T > &  other  )  const [inline]

Definition at line 78 of file TVector3.h.

Referenced by TSphere< T >::RayIntersection().

template<typename T >
const float TVector3< T >::Length (  )  const [inline]

template<typename T >
const float TVector3< T >::LengthSqr (  )  const [inline]

Definition at line 73 of file TVector3.h.

Referenced by TVector3< float >::Normalize().

template<typename T >
void TVector3< T >::Log ( word  wTargetLog  )  const [inline]

Definition at line 83 of file TVector3.h.

template<typename T >
void TVector3< T >::LookAlongRot ( TVector3< T >  vDir  )  [inline]

template<typename T >
void TVector3< T >::Normalize (  )  [inline]

Definition at line 75 of file TVector3.h.

Referenced by TVector3< T >::LookAlongRot(), and CScrollXZCamCtrl::Update().

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

Definition at line 62 of file TVector3.h.

template<typename T >
const TVector3<T> TVector3< T >::operator* ( const TVector3< T > &  other  )  const [inline]

Definition at line 57 of file TVector3.h.

template<typename T >
const TVector3<T> TVector3< T >::operator* ( const T &  factor  )  const [inline]

Definition at line 50 of file TVector3.h.

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

Definition at line 51 of file TVector3.h.

template<typename T >
const TVector3<T> TVector3< T >::operator+ ( const TVector3< T > &  other  )  const [inline]

Definition at line 44 of file TVector3.h.

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

Definition at line 45 of file TVector3.h.

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

Definition at line 59 of file TVector3.h.

template<typename T >
const TVector3<T> TVector3< T >::operator- ( const TVector3< T > &  other  )  const [inline]

Definition at line 47 of file TVector3.h.

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

Definition at line 48 of file TVector3.h.

template<typename T >
const TVector3<T> TVector3< T >::operator/ ( const T &  quot  )  const [inline]

Definition at line 53 of file TVector3.h.

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

Definition at line 54 of file TVector3.h.

template<typename T >
const TVector3<T>& TVector3< T >::operator= ( const TVector3< T > &  other  )  [inline]

Definition at line 42 of file TVector3.h.

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

Definition at line 61 of file TVector3.h.

template<typename T >
const T& TVector3< T >::operator[] ( const byte i  )  const [inline]

Definition at line 67 of file TVector3.h.

template<typename T >
T& TVector3< T >::operator[] ( const byte i  )  [inline]

Definition at line 64 of file TVector3.h.

template<typename T >
void TVector3< T >::Set ( const T &  x,
const T &  y,
const T &  z 
) [inline]

template<typename T >
void TVector3< T >::ShortestRot ( const TVector3< T > &  vFrom,
const TVector3< T > &  vTo 
) [inline]

Definition at line 137 of file TVector3.h.

References TVector3< T >::m_X, TVector3< T >::m_Y, TVector3< T >::m_Z, and MY_PI.


Member Data Documentation

template<typename T >
T TVector3< T >::m_X

Definition at line 89 of file TVector3.h.

Referenced by CVolumeStatistics::ACCHist(), CFrustum::CalculateFrustum(), CLight::CLight(), TPlane< float >::Distance(), TVector3< float >::Dot(), CLight::Draw(), CMatrix44::GetZXYRotationVector(), CMatrix33::GetZXYRotationVector(), CVolumeStatistics::GradientLI(), TVector3< float >::Length(), TVector3< float >::LengthSqr(), TVector3< float >::Log(), TVector3< T >::LookAlongRot(), TVector3< float >::Normalize(), CLight::OnMouseMove(), CSceneCtrl::OnMouseMove(), CProperties::OpenState(), TVector3< float >::operator!=(), TVector3< float >::operator*(), TSphere< T >::operator*(), TAABox3< float >::operator*(), CMatrix44::operator*(), CMatrix33::operator*(), TVector3< float >::operator*=(), TSphere< T >::operator*=(), TAABox3< float >::operator*=(), TVector3< float >::operator+(), TAABox3< float >::operator+(), TVector3< float >::operator+=(), TAABox3< float >::operator+=(), TVector3< float >::operator-(), TVector3< float >::operator-=(), TVector3< float >::operator/(), TVector3< float >::operator/=(), TVector3< float >::operator=(), TVector3< float >::operator==(), TVector3< float >::operator[](), CVolume::Render(), CMatrix44::RotationZXY(), CMatrix33::RotationZXY(), CMatrix44::RotationZYX(), VStudioRenderer::SaveState(), CProperties::SaveState(), CMatrix44::Scaling(), CMatrix33::Scaling(), TVector3< float >::Set(), CLight::SetGradientX(), CVolume::SetRenderSlice(), TVector3< T >::ShortestRot(), CMatrix44::Translation(), CScrollXZCamCtrl::Update(), and CVolume::UpdateUniform().

template<typename T >
T TVector3< T >::m_Y

template<typename T >
T TVector3< T >::m_Z


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

Generated on Wed Dec 10 03:22:19 2008 for VStudio by  doxygen 1.5.7.1