Assimp  v4.1. (December 2018)
aiVector3t< TReal > Class Template Reference

Represents a three-dimensional vector. More...

Public Member Functions

 aiVector3t () AI_NO_EXCEPT
 
 aiVector3t (const aiVector3t &o)=default
 
 aiVector3t (TReal _x, TReal _y, TReal _z)
 
 aiVector3t (TReal _xyz)
 
bool Equal (const aiVector3t &other, TReal epsilon=1e-6) const
 
TReal Length () const
 Get the length of the vector. More...
 
aiVector3t & Normalize ()
 Normalize the vector. More...
 
aiVector3t & NormalizeSafe ()
 Normalize the vector with extra check for zero vectors. More...
 
template<typename TOther >
 operator aiVector3t< TOther > () const
 
bool operator!= (const aiVector3t &other) const
 
aiVector3t & operator*= (const aiMatrix3x3t< TReal > &mat)
 
aiVector3t & operator*= (const aiMatrix4x4t< TReal > &mat)
 
const aiVector3t & operator*= (TReal f)
 
const aiVector3t & operator+= (const aiVector3t &o)
 
const aiVector3t & operator-= (const aiVector3t &o)
 
const aiVector3t & operator/= (TReal f)
 
bool operator< (const aiVector3t &other) const
 
bool operator== (const aiVector3t &other) const
 
TReal & operator[] (unsigned int i)
 
TReal operator[] (unsigned int i) const
 
void Set (TReal pX, TReal pY, TReal pZ)
 Set the components of a vector. More...
 
TReal SquareLength () const
 Get the squared length of the vector. More...
 
const aiVector3t SymMul (const aiVector3t &o)
 Componentwise multiplication of two vectors. More...
 

Public Attributes

TReal x
 
TReal y
 
TReal z
 

Detailed Description

template<typename TReal>
class aiVector3t< TReal >

Represents a three-dimensional vector.

Constructor & Destructor Documentation

◆ aiVector3t() [1/4]

template<typename TReal>
aiVector3t< TReal >::aiVector3t ( )
inline

◆ aiVector3t() [2/4]

template<typename TReal>
aiVector3t< TReal >::aiVector3t ( TReal  _x,
TReal  _y,
TReal  _z 
)
inline

◆ aiVector3t() [3/4]

template<typename TReal>
aiVector3t< TReal >::aiVector3t ( TReal  _xyz)
inlineexplicit

◆ aiVector3t() [4/4]

template<typename TReal>
aiVector3t< TReal >::aiVector3t ( const aiVector3t< TReal > &  o)
default

Member Function Documentation

◆ Equal()

template<typename TReal>
AI_FORCE_INLINE bool aiVector3t< TReal >::Equal ( const aiVector3t< TReal > &  other,
TReal  epsilon = 1e-6 
) const

◆ Length()

template<typename TReal >
AI_FORCE_INLINE TReal aiVector3t< TReal >::Length ( ) const

Get the length of the vector.

Returns
length

◆ Normalize()

template<typename TReal >
AI_FORCE_INLINE aiVector3t< TReal > & aiVector3t< TReal >::Normalize ( )

Normalize the vector.

◆ NormalizeSafe()

template<typename TReal >
AI_FORCE_INLINE aiVector3t< TReal > & aiVector3t< TReal >::NormalizeSafe ( )

Normalize the vector with extra check for zero vectors.

◆ operator aiVector3t< TOther >()

template<typename TReal >
template<typename TOther >
aiVector3t< TReal >::operator aiVector3t< TOther > ( ) const

◆ operator!=()

template<typename TReal >
AI_FORCE_INLINE bool aiVector3t< TReal >::operator!= ( const aiVector3t< TReal > &  other) const

◆ operator*=() [1/3]

template<typename TReal>
AI_FORCE_INLINE aiVector3t< TReal > & aiVector3t< TReal >::operator*= ( const aiMatrix3x3t< TReal > &  mat)

◆ operator*=() [2/3]

template<typename TReal>
AI_FORCE_INLINE aiVector3t< TReal > & aiVector3t< TReal >::operator*= ( const aiMatrix4x4t< TReal > &  mat)

◆ operator*=() [3/3]

template<typename TReal>
const AI_FORCE_INLINE aiVector3t< TReal > & aiVector3t< TReal >::operator*= ( TReal  f)

◆ operator+=()

template<typename TReal >
const AI_FORCE_INLINE aiVector3t< TReal > & aiVector3t< TReal >::operator+= ( const aiVector3t< TReal > &  o)

◆ operator-=()

template<typename TReal >
const AI_FORCE_INLINE aiVector3t< TReal > & aiVector3t< TReal >::operator-= ( const aiVector3t< TReal > &  o)

◆ operator/=()

template<typename TReal>
const AI_FORCE_INLINE aiVector3t< TReal > & aiVector3t< TReal >::operator/= ( TReal  f)

◆ operator<()

template<typename TReal >
AI_FORCE_INLINE bool aiVector3t< TReal >::operator< ( const aiVector3t< TReal > &  other) const

◆ operator==()

template<typename TReal >
AI_FORCE_INLINE bool aiVector3t< TReal >::operator== ( const aiVector3t< TReal > &  other) const

◆ operator[]() [1/2]

template<typename TReal >
AI_FORCE_INLINE TReal & aiVector3t< TReal >::operator[] ( unsigned int  i)

◆ operator[]() [2/2]

template<typename TReal >
AI_FORCE_INLINE TReal aiVector3t< TReal >::operator[] ( unsigned int  i) const

◆ Set()

template<typename TReal>
AI_FORCE_INLINE void aiVector3t< TReal >::Set ( TReal  pX,
TReal  pY,
TReal  pZ 
)

Set the components of a vector.

Parameters
pXX component
pYY component
pZZ component

◆ SquareLength()

template<typename TReal >
AI_FORCE_INLINE TReal aiVector3t< TReal >::SquareLength ( ) const

Get the squared length of the vector.

Returns
Square length

◆ SymMul()

template<typename TReal >
const AI_FORCE_INLINE aiVector3t< TReal > aiVector3t< TReal >::SymMul ( const aiVector3t< TReal > &  o)

Componentwise multiplication of two vectors.

Note that vec*vec yields the dot product.

Parameters
oSecond factor

Member Data Documentation

◆ x

template<typename TReal>
TReal aiVector3t< TReal >::x

◆ y

template<typename TReal>
TReal aiVector3t< TReal >::y

◆ z

template<typename TReal>
TReal aiVector3t< TReal >::z

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