Assimp: aiVector2t< TReal > Class Template Reference

assimp - Open Asset Import Library

aiVector2t< TReal > Class Template Reference

Represents a two-dimensional vector. More...

Public Member Functions

 aiVector2t ()
 
 aiVector2t (TReal _x, TReal _y)
 
 aiVector2t (TReal _xyz)
 
 aiVector2t (const aiVector2t &o)
 
bool Equal (const aiVector2t &other, TReal epsilon=1e-6) const
 
TReal Length () const
 
aiVector2tNormalize ()
 
template<typename TOther >
 operator aiVector2t< TOther > () const
 
bool operator!= (const aiVector2t &other) const
 
const aiVector2toperator*= (TReal f)
 
const aiVector2toperator+= (const aiVector2t &o)
 
const aiVector2toperator-= (const aiVector2t &o)
 
const aiVector2toperator/= (TReal f)
 
aiVector2toperator= (TReal f)
 
bool operator== (const aiVector2t &other) const
 
TReal operator[] (unsigned int i) const
 
TReal & operator[] (unsigned int i)
 
void Set (TReal pX, TReal pY)
 
TReal SquareLength () const
 
const aiVector2t SymMul (const aiVector2t &o)
 

Public Attributes

union {
   struct {
      TReal   x
 
      TReal   y
 
   } 
 
   TReal   v [2]
 
}; 
 

Detailed Description

template<typename TReal>
class aiVector2t< TReal >

Represents a two-dimensional vector.

Constructor & Destructor Documentation

template<typename TReal>
aiVector2t< TReal >::aiVector2t ( )
inline
template<typename TReal>
aiVector2t< TReal >::aiVector2t ( TReal  _x,
TReal  _y 
)
inline
template<typename TReal>
aiVector2t< TReal >::aiVector2t ( TReal  _xyz)
inlineexplicit
template<typename TReal>
aiVector2t< TReal >::aiVector2t ( const aiVector2t< TReal > &  o)
inline

Member Function Documentation

template<typename TReal>
bool aiVector2t< TReal >::Equal ( const aiVector2t< TReal > &  other,
TReal  epsilon = 1e-6 
) const
template<typename TReal >
TReal aiVector2t< TReal >::Length ( ) const
template<typename TReal >
aiVector2t< TReal > & aiVector2t< TReal >::Normalize ( )
template<typename TReal >
template<typename TOther >
aiVector2t< TReal >::operator aiVector2t< TOther > ( ) const
template<typename TReal >
bool aiVector2t< TReal >::operator!= ( const aiVector2t< TReal > &  other) const
template<typename TReal>
const aiVector2t< TReal > & aiVector2t< TReal >::operator*= ( TReal  f)
template<typename TReal >
const aiVector2t< TReal > & aiVector2t< TReal >::operator+= ( const aiVector2t< TReal > &  o)
template<typename TReal >
const aiVector2t< TReal > & aiVector2t< TReal >::operator-= ( const aiVector2t< TReal > &  o)
template<typename TReal>
const aiVector2t< TReal > & aiVector2t< TReal >::operator/= ( TReal  f)
template<typename TReal>
aiVector2t< TReal > & aiVector2t< TReal >::operator= ( TReal  f)
template<typename TReal >
bool aiVector2t< TReal >::operator== ( const aiVector2t< TReal > &  other) const
template<typename TReal >
TReal aiVector2t< TReal >::operator[] ( unsigned int  i) const
template<typename TReal >
TReal & aiVector2t< TReal >::operator[] ( unsigned int  i)
template<typename TReal>
void aiVector2t< TReal >::Set ( TReal  pX,
TReal  pY 
)
template<typename TReal >
TReal aiVector2t< TReal >::SquareLength ( ) const
template<typename TReal >
const aiVector2t< TReal > aiVector2t< TReal >::SymMul ( const aiVector2t< TReal > &  o)

Member Data Documentation

union { ... }
template<typename TReal>
TReal aiVector2t< TReal >::v[2]
template<typename TReal>
TReal aiVector2t< TReal >::x
template<typename TReal>
TReal aiVector2t< TReal >::y
The documentation for this class was generated from the following files:
Generated on Sun Feb 21 2016 19:42:29 for Assimp by   doxygen 1.8.11