Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
aiVector2t< TReal > Class Template Reference

Represents a two-dimensional vector. More...

#include <vector2.h>

Public Member Functions

 aiVector2t ()
 
 aiVector2t (const aiVector2t &o)=default
 
 aiVector2t (TReal _x, TReal _y)
 
 aiVector2t (TReal _xyz)
 
bool Equal (const aiVector2t &other, TReal epsilon=ai_epsilon) 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
 
void Set (TReal pX, TReal pY)
 
TReal SquareLength () const
 
const aiVector2t SymMul (const aiVector2t &o)
 

Public Attributes

TReal x
 
TReal y
 

Detailed Description

template<typename TReal>
class aiVector2t< TReal >

Represents a two-dimensional vector.

Constructor & Destructor Documentation

◆ aiVector2t() [1/4]

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

◆ aiVector2t() [2/4]

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

◆ aiVector2t() [3/4]

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

◆ aiVector2t() [4/4]

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

Member Function Documentation

◆ Equal()

template<typename TReal >
bool aiVector2t< TReal >::Equal ( const aiVector2t< TReal > &  other,
TReal  epsilon = ai_epsilon 
) const
inline

◆ Length()

template<typename TReal >
TReal aiVector2t< TReal >::Length
inline

◆ Normalize()

template<typename TReal >
aiVector2t< TReal > & aiVector2t< TReal >::Normalize
inline

◆ operator aiVector2t< TOther >()

template<typename TReal >
template<typename TOther >
aiVector2t< TReal >::operator aiVector2t< TOther >

◆ operator!=()

template<typename TReal >
bool aiVector2t< TReal >::operator!= ( const aiVector2t< TReal > &  other) const
inline

◆ operator*=()

template<typename TReal >
const aiVector2t< TReal > & aiVector2t< TReal >::operator*= ( TReal  f)
inline

◆ operator+=()

template<typename TReal >
const aiVector2t< TReal > & aiVector2t< TReal >::operator+= ( const aiVector2t< TReal > &  o)
inline

◆ operator-=()

template<typename TReal >
const aiVector2t< TReal > & aiVector2t< TReal >::operator-= ( const aiVector2t< TReal > &  o)
inline

◆ operator/=()

template<typename TReal >
const aiVector2t< TReal > & aiVector2t< TReal >::operator/= ( TReal  f)
inline

◆ operator=()

template<typename TReal >
aiVector2t< TReal > & aiVector2t< TReal >::operator= ( TReal  f)
inline

◆ operator==()

template<typename TReal >
bool aiVector2t< TReal >::operator== ( const aiVector2t< TReal > &  other) const
inline

◆ operator[]()

template<typename TReal >
TReal aiVector2t< TReal >::operator[] ( unsigned int  i) const
inline

◆ Set()

template<typename TReal >
void aiVector2t< TReal >::Set ( TReal  pX,
TReal  pY 
)
inline

◆ SquareLength()

template<typename TReal >
TReal aiVector2t< TReal >::SquareLength
inline

◆ SymMul()

template<typename TReal >
const aiVector2t< TReal > aiVector2t< TReal >::SymMul ( const aiVector2t< TReal > &  o)
inline

Member Data Documentation

◆ x

template<typename TReal >
TReal aiVector2t< TReal >::x

◆ y

template<typename TReal >
TReal aiVector2t< TReal >::y

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