Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

salt::TVector3< DATATYPE, TYPE > Class Template Reference

TVector3 is a two dimensional version of TVector. More...

#include <tvector.h>

Inheritance diagram for salt::TVector3< DATATYPE, TYPE >:

Inheritance graph
[legend]
Collaboration diagram for salt::TVector3< DATATYPE, TYPE >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TVector3 ()
 constructs an undefined TVector3
 TVector3 (const DATATYPE &x, const DATATYPE &y, const DATATYPE &z)
 constructs a TVector3 from x,y and z
f_inline DATATYPE & x ()
 returns a reference to the first component
f_inline const DATATYPE & x () const
 returns a constant reference to the first component
f_inline DATATYPE & y ()
 returns a reference to the second component
f_inline const DATATYPE & y () const
 returns a constant reference to the second component
f_inline DATATYPE & z ()
 returns a reference to the third component
f_inline const DATATYPE & z () const
 returns a constant reference to the third component
const TYPE Cross (const TVector< DATATYPE, 3, TYPE > &v) const
 calculates the cross product, returning a new TVector3
const TYPE & Set (const DATATYPE &x, const DATATYPE &y, const DATATYPE &z)
 sets up the vector from x,y and z
const TYPE & Set (const TYPE &v)
 sets up the vector from another TVector3 v

Detailed Description

template<typename DATATYPE, class TYPE>
class salt::TVector3< DATATYPE, TYPE >

TVector3 is a two dimensional version of TVector.

Definition at line 239 of file tvector.h.


Constructor & Destructor Documentation

template<typename DATATYPE, class TYPE>
salt::TVector3< DATATYPE, TYPE >::TVector3  )  [inline]
 

constructs an undefined TVector3

Definition at line 243 of file tvector.h.

template<typename DATATYPE, class TYPE>
salt::TVector3< DATATYPE, TYPE >::TVector3 const DATATYPE &  x,
const DATATYPE &  y,
const DATATYPE &  z
[inline]
 

constructs a TVector3 from x,y and z

Definition at line 246 of file tvector.h.


Member Function Documentation

template<typename DATATYPE, class TYPE>
const TYPE salt::TVector3< DATATYPE, TYPE >::Cross const TVector< DATATYPE, 3, TYPE > &  v  )  const [inline]
 

calculates the cross product, returning a new TVector3

Definition at line 277 of file tvector.h.

Referenced by salt::Matrix::LookAt(), salt::Plane::Plane(), and salt::Plane::Set().

template<typename DATATYPE, class TYPE>
const TYPE& salt::TVector3< DATATYPE, TYPE >::Set const TYPE &  v  )  [inline]
 

sets up the vector from another TVector3 v

Definition at line 302 of file tvector.h.

template<typename DATATYPE, class TYPE>
const TYPE& salt::TVector3< DATATYPE, TYPE >::Set const DATATYPE &  x,
const DATATYPE &  y,
const DATATYPE &  z
[inline]
 

sets up the vector from x,y and z

Definition at line 292 of file tvector.h.

Referenced by salt::Plane::ClassifyBox(), kerosin::Light::ComputeBoundingBox(), oxygen::BaseNode::ComputeBoundingBox(), oxygen::Camera::DescribeFrustum(), salt::AABB3::Init(), salt::Frustum::Set(), salt::AABB3::TransformBy(), and salt::TVector3< float, Vector3f >::TVector3().

template<typename DATATYPE, class TYPE>
f_inline const DATATYPE& salt::TVector3< DATATYPE, TYPE >::x  )  const [inline]
 

returns a constant reference to the first component

Definition at line 257 of file tvector.h.

template<typename DATATYPE, class TYPE>
f_inline DATATYPE& salt::TVector3< DATATYPE, TYPE >::x  )  [inline]
 

returns a reference to the first component

Definition at line 253 of file tvector.h.

Referenced by oxygen::Body::AddForce(), oxygen::Body::AddTorque(), SoccerRuleAspect::CheckBallLeftField(), salt::Plane::ClassifyBox(), salt::AABB3::Contains(), SoccerRuleAspect::DropBall(), salt::AABB3::Encapsulate(), salt::Plane::GetDominantPlane(), salt::AABB3::GetMiddle(), salt::AABB3::GetWidth(), salt::AABB3::Intersects(), salt::Matrix::InverseRotate(), salt::Matrix::LookAt(), salt::Plane::Normalize(), salt::Matrix::operator *(), salt::Plane::Plane(), oxygen::FPSController::PrePhysicsUpdateInternal(), salt::Vector3f::Reflect(), salt::Matrix::Rotate(), salt::Matrix::Scale(), salt::Plane::Set(), oxygen::World::SetGravity(), oxygen::PlaneCollider::SetParams(), oxygen::Body::SetPosition(), salt::Matrix::Transform(), salt::AABB3::TransformBy(), salt::Matrix::Translate(), salt::Matrix::Translation(), and salt::AABB3::Widen().

template<typename DATATYPE, class TYPE>
f_inline const DATATYPE& salt::TVector3< DATATYPE, TYPE >::y  )  const [inline]
 

returns a constant reference to the second component

Definition at line 265 of file tvector.h.

template<typename DATATYPE, class TYPE>
f_inline DATATYPE& salt::TVector3< DATATYPE, TYPE >::y  )  [inline]
 

returns a reference to the second component

Definition at line 261 of file tvector.h.

Referenced by oxygen::Body::AddForce(), oxygen::Body::AddTorque(), SoccerRuleAspect::CheckBallLeftField(), salt::Plane::ClassifyBox(), salt::AABB3::Contains(), SoccerRuleAspect::DropBall(), salt::Frustum::Dump(), salt::AABB3::Encapsulate(), salt::Plane::GetDominantPlane(), salt::AABB3::GetHeight(), salt::AABB3::GetMiddle(), salt::AABB3::Intersects(), salt::Matrix::InverseRotate(), salt::Matrix::LookAt(), salt::Plane::Normalize(), salt::Matrix::operator *(), salt::Plane::Plane(), oxygen::FPSController::PrePhysicsUpdateInternal(), salt::Vector3f::Reflect(), salt::Matrix::Rotate(), salt::Matrix::Scale(), salt::Plane::Set(), oxygen::World::SetGravity(), oxygen::PlaneCollider::SetParams(), oxygen::Body::SetPosition(), salt::Matrix::Transform(), salt::AABB3::TransformBy(), salt::Matrix::Translate(), salt::Matrix::Translation(), and salt::AABB3::Widen().

template<typename DATATYPE, class TYPE>
f_inline const DATATYPE& salt::TVector3< DATATYPE, TYPE >::z  )  const [inline]
 

returns a constant reference to the third component

Definition at line 273 of file tvector.h.

template<typename DATATYPE, class TYPE>
f_inline DATATYPE& salt::TVector3< DATATYPE, TYPE >::z  )  [inline]
 

returns a reference to the third component

Definition at line 269 of file tvector.h.

Referenced by oxygen::Body::AddForce(), oxygen::Body::AddTorque(), salt::Plane::ClassifyBox(), salt::AABB3::Contains(), salt::Frustum::Dump(), salt::AABB3::Encapsulate(), salt::AABB3::GetDepth(), salt::Plane::GetDominantPlane(), salt::AABB3::GetMiddle(), salt::AABB3::Intersects(), salt::Matrix::InverseRotate(), salt::Matrix::LookAt(), salt::Plane::Normalize(), salt::Matrix::operator *(), salt::Plane::Plane(), oxygen::FPSController::PrePhysicsUpdateInternal(), DriveEffector::PrePhysicsUpdateInternal(), salt::Vector3f::Reflect(), salt::Matrix::Rotate(), salt::Matrix::Scale(), salt::Plane::Set(), oxygen::World::SetGravity(), oxygen::PlaneCollider::SetParams(), oxygen::Body::SetPosition(), salt::Matrix::Transform(), salt::AABB3::TransformBy(), salt::Matrix::Translate(), salt::Matrix::Translation(), and salt::AABB3::Widen().


The documentation for this class was generated from the following file:
Generated on Thu Apr 6 15:49:29 2006 for rcssserver3d by  doxygen 1.4.4