VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
makVrv::DtVector4< T > Class Template Reference

template<class T>
class makVrv::DtVector4< T >

4 dimensional vector

Inheritance diagram for makVrv::DtVector4< T >:
Inheritance graph
[legend]

Public Member Functions

 DtVector4 ()
 
 DtVector4 (T _x, T _y, T _z, T _w)
 
 DtVector4 (const DtVector3< T > &rhs, T _w)
 
template<class T1 >
 DtVector4 (const T1 &v)
 
 ~DtVector4 ()
 
const void * ptr (void) const
 
const T * typePtr (void) const
 
DtVector4 operator- (void) const
 
DtVector4 operator+ (T fScalar) const
 
DtVector4 operator- (T fScalar) const
 
DtVector4 operator* (T fScalar) const
 
DtVector4 operator/ (T fScalar) const
 
DtVector4operator+= (T fScalar)
 
DtVector4operator-= (T fScalar)
 
DtVector4operator*= (T fScalar)
 
DtVector4operator/= (T fScalar)
 
DtVector4operator+= (const DtVector4 &rhs)
 
DtVector4 operator+ (const DtVector4 &rhs) const
 
DtVector4 operator- (const DtVector4 &rhs) const
 
bool isEqual (const DtVector4 &rhs, T tolerance) const
 
operator[] (size_t index) const
 
T & operator[] (size_t index)
 
bool operator== (const DtVector4 &rhs) const
 
bool operator!= (const DtVector4 &rhs) const
 
length (void) const
 
squaredLength (void) const
 
DtVector4 componentMultiply (const DtVector4 &rhs) const
 
dotProduct (const DtVector4 &rhs) const
 
void set (T x, T y, T z, T w)
 

Static Public Member Functions

static size_t sizeInBytes (void)
 

Public Attributes

x
 
y
 
z
 
w
 

Static Public Attributes

static const DtVector4 theZeroVector = DtVector4<T>(0, 0, 0, 0)
 
static const DtVector4 theUnitScale = DtVector4<T>(1, 1, 1, 1)
 

Constructor & Destructor Documentation

template<class T>
makVrv::DtVector4< T >::DtVector4 ( )
inline
template<class T>
makVrv::DtVector4< T >::DtVector4 ( _x,
_y,
_z,
_w 
)
inline

CTOR.

template<class T>
makVrv::DtVector4< T >::DtVector4 ( const DtVector3< T > &  rhs,
_w 
)
inline

CTOR.

template<class T>
template<class T1 >
makVrv::DtVector4< T >::DtVector4 ( const T1 &  v)
inline

CTOR construct from type with constructable components.

template<class T>
makVrv::DtVector4< T >::~DtVector4 ( )
inline

DTOR.

Member Function Documentation

template<class T>
const void* makVrv::DtVector4< T >::ptr ( void  ) const
inline

access the pointer to the data

template<class T>
const T* makVrv::DtVector4< T >::typePtr ( void  ) const
inline

access the pointer to the data, with the type of the data

template<class T>
DtVector4 makVrv::DtVector4< T >::operator- ( void  ) const
inline

get the negated version of this vector

template<class T>
DtVector4< T > makVrv::DtVector4< T >::operator+ ( fScalar) const

add a scalar to this vector

template<class T>
DtVector4< T > makVrv::DtVector4< T >::operator- ( fScalar) const

subtract a scalar from this vector

template<class T>
DtVector4< T > makVrv::DtVector4< T >::operator* ( fScalar) const

multiply a scalar to this vector

template<class T>
DtVector4< T > makVrv::DtVector4< T >::operator/ ( fScalar) const

divide this vector by a scalar

template<class T>
DtVector4< T > & makVrv::DtVector4< T >::operator+= ( fScalar)

add a scalar to this vector

template<class T>
DtVector4< T > & makVrv::DtVector4< T >::operator-= ( fScalar)

subtract a scalar from this vector

template<class T>
DtVector4< T > & makVrv::DtVector4< T >::operator*= ( fScalar)

multiply a scalar to this vector

template<class T>
DtVector4< T > & makVrv::DtVector4< T >::operator/= ( fScalar)

divide this vector by a scalar

template<class T>
DtVector4< T > & makVrv::DtVector4< T >::operator+= ( const DtVector4< T > &  rhs)

component wise addition of this with rhs.

template<class T>
DtVector4< T > makVrv::DtVector4< T >::operator+ ( const DtVector4< T > &  rhs) const

component wise addition two vectors

template<class T>
DtVector4< T > makVrv::DtVector4< T >::operator- ( const DtVector4< T > &  rhs) const

component wise subtract two vectors

template<class T>
bool makVrv::DtVector4< T >::isEqual ( const DtVector4< T > &  rhs,
tolerance 
) const

is this vector == to rhs within the tolerance/epsilon

References makVrv::DtMath::isEqual().

template<class T >
T makVrv::DtVector4< T >::operator[] ( size_t  index) const

access a component of this vector

References ASSERT_PREDICATE.

template<class T >
T & makVrv::DtVector4< T >::operator[] ( size_t  index)

access a component of this vector

References ASSERT_PREDICATE.

template<class T >
bool makVrv::DtVector4< T >::operator== ( const DtVector4< T > &  rhs) const

equality

template<class T >
bool makVrv::DtVector4< T >::operator!= ( const DtVector4< T > &  rhs) const

inequality

template<class T >
T makVrv::DtVector4< T >::length ( void  ) const

get the length of this vector

References makVrv::DtMath::Sqrt().

template<class T >
T makVrv::DtVector4< T >::squaredLength ( void  ) const

get the length squared of this vector

template<class T >
DtVector4< T > makVrv::DtVector4< T >::componentMultiply ( const DtVector4< T > &  rhs) const
template<class T >
T makVrv::DtVector4< T >::dotProduct ( const DtVector4< T > &  rhs) const

get the dot product of this vector and rhs

template<class T>
void makVrv::DtVector4< T >::set ( x,
y,
z,
w 
)

set values

template<class T >
size_t makVrv::DtVector4< T >::sizeInBytes ( void  )
static

Member Data Documentation

template<class T>
T makVrv::DtVector4< T >::x
template<class T>
T makVrv::DtVector4< T >::y
template<class T>
T makVrv::DtVector4< T >::z
template<class T>
T makVrv::DtVector4< T >::w
template<class T>
const DtVector4< T > makVrv::DtVector4< T >::theZeroVector = DtVector4<T>(0, 0, 0, 0)
static
template<class T>
const DtVector4< T > makVrv::DtVector4< T >::theUnitScale = DtVector4<T>(1, 1, 1, 1)
static

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)