Public Types | Public Member Functions | List of all members
imath::TMathVectorWrap< Base > Class Template Reference

Implementation of mathematical vector with carthesian operations over elements container (vector). More...

#include <TMathVectorWrap.h>

Inheritance diagram for imath::TMathVectorWrap< Base >:

Public Types

typedef Base BaseClass
 

Public Member Functions

 TMathVectorWrap ()
 Create an uninitialized point. More...
 
 TMathVectorWrap (const Base &vector)
 Copy constructor. More...
 
void Clear ()
 Set all coordinates to zero. More...
 
void Translate (const TMathVectorWrap< Base > &vector)
 Translate the point. More...
 
TMathVectorWrap< Base > GetTranslated (const TMathVectorWrap< Base > &vector)
 Get translated point. More...
 
void GetTranslated (const TMathVectorWrap< Base > &vector, TMathVectorWrap< Base > &result)
 /overloaded More...
 
bool IsNull (typename Base::ElementType tolerance=I_BIG_EPSILON) const
 Check if this vector is null. More...
 
Base::ElementType GetDotProduct (const TMathVectorWrap< Base > &vector) const
 Return dot product of two vectors. More...
 
Base::ElementType GetLength2 () const
 Return euclidian length square. More...
 
Base::ElementType GetLength () const
 Return euclidian length. More...
 
Base::ElementType GetDistance2 (const TMathVectorWrap< Base > &vector) const
 Return distance square between two vectors. More...
 
Base::ElementType GetDistance (const TMathVectorWrap< Base > &vector) const
 Return distance between two vectors. More...
 
bool Normalize (typename Base::ElementType length=1.0)
 Normalize vector to specified length. More...
 
bool GetNormalized (TMathVectorWrap< Base > &result, typename Base::ElementType length=1.0) const
 Return normalized vector with the same direction and specified length. More...
 
bool Serialize (iser::IArchive &archive)
 Serialize this vector to specified archive. More...
 
bool operator== (const TMathVectorWrap< Base > &vector) const
 
bool operator!= (const TMathVectorWrap< Base > &vector) const
 
bool operator< (const TMathVectorWrap< Base > &vector) const
 
bool operator> (const TMathVectorWrap< Base > &vector) const
 
bool operator<= (const TMathVectorWrap< Base > &vector) const
 
bool operator>= (const TMathVectorWrap< Base > &vector) const
 
TMathVectorWrap< Base > operator- () const
 
TMathVectorWrap< Base > operator+ (const TMathVectorWrap< Base > &vector) const
 
TMathVectorWrap< Base > operator- (const TMathVectorWrap< Base > &vector) const
 
TMathVectorWrap< Base > operator* (typename Base::ElementType scalar) const
 
TMathVectorWrap< Base > operator/ (typename Base::ElementType scalar) const
 
TMathVectorWrap< Base > & operator= (const TMathVectorWrap< Base > &vector)
 
TMathVectorWrap< Base > & operator+= (const TMathVectorWrap< Base > &vector)
 
TMathVectorWrap< Base > & operator-= (const TMathVectorWrap< Base > &vector)
 
TMathVectorWrap< Base > & operator*= (typename Base::ElementType scalar)
 
TMathVectorWrap< Base > & operator/= (typename Base::ElementType scalar)
 
 operator Base () const
 

Detailed Description

template<typename Base>
class imath::TMathVectorWrap< Base >

Implementation of mathematical vector with carthesian operations over elements container (vector).

Definition at line 20 of file TMathVectorWrap.h.

Member Typedef Documentation

template<typename Base>
typedef Base imath::TMathVectorWrap< Base >::BaseClass

Definition at line 23 of file TMathVectorWrap.h.

Constructor & Destructor Documentation

template<typename Base >
imath::TMathVectorWrap< Base >::TMathVectorWrap ( )
inline

Create an uninitialized point.

Definition at line 130 of file TMathVectorWrap.h.

template<typename Base >
imath::TMathVectorWrap< Base >::TMathVectorWrap ( const Base &  vector)
inline

Copy constructor.

Definition at line 136 of file TMathVectorWrap.h.

Member Function Documentation

template<typename Base >
void imath::TMathVectorWrap< Base >::Clear ( )
inline

Set all coordinates to zero.

Definition at line 145 of file TMathVectorWrap.h.

template<typename Base >
Base::ElementType imath::TMathVectorWrap< Base >::GetDistance ( const TMathVectorWrap< Base > &  vector) const
inline

Return distance between two vectors.

Definition at line 221 of file TMathVectorWrap.h.

template<typename Base >
Base::ElementType imath::TMathVectorWrap< Base >::GetDistance2 ( const TMathVectorWrap< Base > &  vector) const
inline

Return distance square between two vectors.

Definition at line 214 of file TMathVectorWrap.h.

template<typename Base >
Base::ElementType imath::TMathVectorWrap< Base >::GetDotProduct ( const TMathVectorWrap< Base > &  vector) const
inline

Return dot product of two vectors.

Definition at line 186 of file TMathVectorWrap.h.

template<typename Base >
Base::ElementType imath::TMathVectorWrap< Base >::GetLength ( ) const
inline

Return euclidian length.

Definition at line 207 of file TMathVectorWrap.h.

template<typename Base >
Base::ElementType imath::TMathVectorWrap< Base >::GetLength2 ( ) const
inline

Return euclidian length square.

Definition at line 200 of file TMathVectorWrap.h.

template<typename Base >
bool imath::TMathVectorWrap< Base >::GetNormalized ( TMathVectorWrap< Base > &  result,
typename Base::ElementType  length = 1.0 
) const

Return normalized vector with the same direction and specified length.

Parameters
lengthnew vector length.
Returns
true, if normalization successed.

Definition at line 489 of file TMathVectorWrap.h.

References I_BIG_EPSILON.

template<typename Base >
TMathVectorWrap< Base > imath::TMathVectorWrap< Base >::GetTranslated ( const TMathVectorWrap< Base > &  vector)

Get translated point.

Definition at line 165 of file TMathVectorWrap.h.

template<typename Base >
void imath::TMathVectorWrap< Base >::GetTranslated ( const TMathVectorWrap< Base > &  vector,
TMathVectorWrap< Base > &  result 
)

/overloaded

Definition at line 172 of file TMathVectorWrap.h.

template<typename Base >
bool imath::TMathVectorWrap< Base >::IsNull ( typename Base::ElementType  tolerance = I_BIG_EPSILON) const
inline

Check if this vector is null.

Definition at line 179 of file TMathVectorWrap.h.

template<typename Base >
bool imath::TMathVectorWrap< Base >::Normalize ( typename Base::ElementType  length = 1.0)

Normalize vector to specified length.

Parameters
lengthnew vector length.
Returns
true, if normalization successed.

Definition at line 468 of file TMathVectorWrap.h.

References I_BIG_EPSILON.

template<typename Base >
imath::TMathVectorWrap< Base >::operator Base ( ) const

Definition at line 543 of file TMathVectorWrap.h.

template<typename Base >
bool imath::TMathVectorWrap< Base >::operator!= ( const TMathVectorWrap< Base > &  vector) const
inline

Definition at line 247 of file TMathVectorWrap.h.

template<typename Base >
TMathVectorWrap< Base > imath::TMathVectorWrap< Base >::operator* ( typename Base::ElementType  scalar) const
inline

Definition at line 436 of file TMathVectorWrap.h.

template<typename Base >
TMathVectorWrap< Base > & imath::TMathVectorWrap< Base >::operator*= ( typename Base::ElementType  scalar)
inline

Definition at line 367 of file TMathVectorWrap.h.

template<typename Base >
TMathVectorWrap< Base > imath::TMathVectorWrap< Base >::operator+ ( const TMathVectorWrap< Base > &  vector) const
inline

Definition at line 406 of file TMathVectorWrap.h.

template<typename Base >
TMathVectorWrap< Base > & imath::TMathVectorWrap< Base >::operator+= ( const TMathVectorWrap< Base > &  vector)
inline

Definition at line 343 of file TMathVectorWrap.h.

template<typename Base >
TMathVectorWrap< Base > imath::TMathVectorWrap< Base >::operator- ( ) const
inline

Definition at line 391 of file TMathVectorWrap.h.

template<typename Base >
TMathVectorWrap< Base > imath::TMathVectorWrap< Base >::operator- ( const TMathVectorWrap< Base > &  vector) const
inline

Definition at line 421 of file TMathVectorWrap.h.

template<typename Base >
TMathVectorWrap< Base > & imath::TMathVectorWrap< Base >::operator-= ( const TMathVectorWrap< Base > &  vector)
inline

Definition at line 355 of file TMathVectorWrap.h.

template<typename Base >
TMathVectorWrap< Base > imath::TMathVectorWrap< Base >::operator/ ( typename Base::ElementType  scalar) const
inline

Definition at line 451 of file TMathVectorWrap.h.

template<typename Base >
TMathVectorWrap< Base > & imath::TMathVectorWrap< Base >::operator/= ( typename Base::ElementType  scalar)
inline

Definition at line 379 of file TMathVectorWrap.h.

template<typename Base >
bool imath::TMathVectorWrap< Base >::operator< ( const TMathVectorWrap< Base > &  vector) const

Definition at line 254 of file TMathVectorWrap.h.

template<typename Base >
bool imath::TMathVectorWrap< Base >::operator<= ( const TMathVectorWrap< Base > &  vector) const

Definition at line 294 of file TMathVectorWrap.h.

template<typename Base >
TMathVectorWrap< Base > & imath::TMathVectorWrap< Base >::operator= ( const TMathVectorWrap< Base > &  vector)
inline

Definition at line 334 of file TMathVectorWrap.h.

template<typename Base >
bool imath::TMathVectorWrap< Base >::operator== ( const TMathVectorWrap< Base > &  vector) const
inline

Definition at line 230 of file TMathVectorWrap.h.

template<typename Base >
bool imath::TMathVectorWrap< Base >::operator> ( const TMathVectorWrap< Base > &  vector) const

Definition at line 274 of file TMathVectorWrap.h.

template<typename Base >
bool imath::TMathVectorWrap< Base >::operator>= ( const TMathVectorWrap< Base > &  vector) const

Definition at line 314 of file TMathVectorWrap.h.

template<typename Base >
bool imath::TMathVectorWrap< Base >::Serialize ( iser::IArchive archive)
template<typename Base >
void imath::TMathVectorWrap< Base >::Translate ( const TMathVectorWrap< Base > &  vector)
inline

Translate the point.

Definition at line 155 of file TMathVectorWrap.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy