#include <TVector3.h>
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 ") const |
const TVector3< T > & | operator/= (const T ") |
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 | |
T | m_X |
T | m_Y |
T | m_Z |
Definition at line 29 of file TVector3.h.
Definition at line 37 of file TVector3.h.
Definition at line 38 of file TVector3.h.
Definition at line 39 of file TVector3.h.
Definition at line 40 of file TVector3.h.
const float TVector3< T >::Length | ( | ) | const [inline] |
Definition at line 72 of file TVector3.h.
Referenced by CFrustum::CalculateFrustum(), TVector3< T >::LookAlongRot(), and TVector3< float >::Normalize().
const float TVector3< T >::LengthSqr | ( | ) | const [inline] |
Definition at line 83 of file TVector3.h.
Definition at line 100 of file TVector3.h.
References CMatrix33::_11, CMatrix33::_12, CMatrix33::_13, CMatrix33::_21, CMatrix33::_22, CMatrix33::_23, CMatrix33::_31, CMatrix33::_32, CMatrix33::_33, CMatrix33::GetZXYRotationVector(), TVector3< T >::Length(), TVector3< T >::m_X, TVector3< T >::m_Y, TVector3< T >::m_Z, TVector3< T >::Normalize(), and TVector3< T >::Set().
void TVector3< T >::Normalize | ( | ) | [inline] |
Definition at line 75 of file TVector3.h.
Referenced by TVector3< T >::LookAlongRot(), and CScrollXZCamCtrl::Update().
Definition at line 62 of file TVector3.h.
const TVector3<T> TVector3< T >::operator* | ( | const TVector3< T > & | other | ) | const [inline] |
Definition at line 57 of file TVector3.h.
const TVector3<T> TVector3< T >::operator* | ( | const T & | factor | ) | const [inline] |
Definition at line 50 of file TVector3.h.
Definition at line 51 of file TVector3.h.
const TVector3<T> TVector3< T >::operator+ | ( | const TVector3< T > & | other | ) | const [inline] |
Definition at line 44 of file TVector3.h.
const TVector3<T>& TVector3< T >::operator+= | ( | const TVector3< T > & | other | ) | [inline] |
Definition at line 45 of file TVector3.h.
Definition at line 59 of file TVector3.h.
const TVector3<T> TVector3< T >::operator- | ( | const TVector3< T > & | other | ) | const [inline] |
Definition at line 47 of file TVector3.h.
const TVector3<T>& TVector3< T >::operator-= | ( | const TVector3< T > & | other | ) | [inline] |
Definition at line 48 of file TVector3.h.
Definition at line 53 of file TVector3.h.
Definition at line 54 of file TVector3.h.
const TVector3<T>& TVector3< T >::operator= | ( | const TVector3< T > & | other | ) | [inline] |
Definition at line 42 of file TVector3.h.
Definition at line 61 of file TVector3.h.
Definition at line 67 of file TVector3.h.
Definition at line 64 of file TVector3.h.
void TVector3< T >::Set | ( | const T & | x, | |
const T & | y, | |||
const T & | z | |||
) | [inline] |
Definition at line 70 of file TVector3.h.
Referenced by CFrustum::CalculateFrustum(), CCamera::Clear(), TVector3< T >::LookAlongRot(), and CSceneCtrl::Reset().
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.
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().
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==(), CMatrix44::RotationZXY(), CMatrix33::RotationZXY(), CMatrix44::RotationZYX(), VStudioRenderer::SaveState(), CProperties::SaveState(), CMatrix44::Scaling(), CMatrix33::Scaling(), TVector3< float >::Set(), CLight::SetGradientY(), TVector3< T >::ShortestRot(), CMatrix44::Translation(), CScrollXZCamCtrl::Update(), and CVolume::UpdateUniform().
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==(), CMatrix44::RotationZXY(), CMatrix33::RotationZXY(), CMatrix44::RotationZYX(), VStudioRenderer::SaveState(), CProperties::SaveState(), CMatrix44::Scaling(), CMatrix33::Scaling(), TVector3< float >::Set(), CLight::SetGradientZ(), TVector3< T >::ShortestRot(), CMatrix44::Translation(), CScrollXZCamCtrl::Update(), and CVolume::UpdateUniform().