#include <tvector.h>
Inheritance diagram for salt::TVector3< DATATYPE, TYPE >:
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 |
Definition at line 239 of file tvector.h.
|
constructs an undefined TVector3
|
|
constructs a TVector3 from x,y and z
|
|
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(). |
|
sets up the vector from another TVector3 v
|
|
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(). |
|
returns a constant reference to the first component
|
|
|
returns a constant reference to the second component
|
|
|
returns a constant reference to the third component
|
|