VR-Forces 4.10 Class Documentation
 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
makVrv::DtVector4< T > Class Template Reference

4 dimensional vector More...

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

Public Member Functions

 DtVector4 ()
 CTOR. More...
 
 DtVector4 (T _x, T _y, T _z, T _w)
 CTOR. More...
 
 DtVector4 (const DtVector3< T > &rhs, T _w)
 CTOR. More...
 
template<class T1 >
 DtVector4 (const T1 &v)
 CTOR construct from type with constructable components. More...
 
 ~DtVector4 ()
 DTOR. More...
 
const void * ptr (void) const
 access the pointer to the data More...
 
const T * typePtr (void) const
 access the pointer to the data, with the type of the data More...
 
DtVector4 operator- (void) const
 get the negated version of this vector More...
 
DtVector4 operator+ (T fScalar) const
 add a scalar to this vector More...
 
DtVector4 operator- (T fScalar) const
 subtract a scalar from this vector More...
 
DtVector4 operator* (T fScalar) const
 multiply a scalar to this vector More...
 
DtVector4 operator/ (T fScalar) const
 divide this vector by a scalar More...
 
DtVector4operator+= (T fScalar)
 add a scalar to this vector More...
 
DtVector4operator-= (T fScalar)
 subtract a scalar from this vector More...
 
DtVector4operator*= (T fScalar)
 multiply a scalar to this vector More...
 
DtVector4operator/= (T fScalar)
 divide this vector by a scalar More...
 
bool isEqual (const DtVector4 &rhs, T tolerance) const
 is this vector == to rhs within the tolerance/epsilon More...
 
operator[] (size_t index) const
 access a component of this vector More...
 
T & operator[] (size_t index)
 access a component of this vector More...
 
bool operator== (const DtVector4 &rhs) const
 equality More...
 
bool operator!= (const DtVector4 &rhs) const
 inequality More...
 

Static Public Member Functions

static size_t sizeInBytes (void)
 

Public Attributes

x
 
y
 
z
 
w
 

Detailed Description

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

4 dimensional vector

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>
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 >
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

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)