|
Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
Represents a three-dimensional vector. More...
#include <vector3.h>
Public Member Functions | |
| aiVector3t () AI_NO_EXCEPT | |
| The default class constructor. | |
| aiVector3t (const aiVector3t &o)=default | |
| The copy constructor. | |
| aiVector3t (TReal _x, TReal _y, TReal _z) | |
| The class constructor with the components. | |
| aiVector3t (TReal _xyz) | |
| The class constructor with a default value. | |
| bool | Equal (const aiVector3t &other, TReal epsilon=ai_epsilon) const |
| TReal | Length () const |
| Get the length of the vector. | |
| aiVector3t & | Normalize () |
| Normalize the vector. | |
| aiVector3t & | NormalizeSafe () |
| Normalize the vector with extra check for zero vectors. | |
| template<typename TOther > | |
| operator aiVector3t< TOther > () const | |
| bool | operator!= (const aiVector3t &other) const |
| aiVector3t & | operator*= (const aiMatrix3x3t< TReal > &mat) |
| Transform vector by matrix. | |
| aiVector3t & | operator*= (const aiMatrix4x4t< TReal > &mat) |
| const aiVector3t & | operator*= (TReal f) |
| The copy constructor. | |
| const aiVector3t & | operator+= (const aiVector3t &o) |
| combined operators | |
| const aiVector3t & | operator-= (const aiVector3t &o) |
| The copy constructor. | |
| const aiVector3t & | operator/= (TReal f) |
| The copy constructor. | |
| bool | operator< (const aiVector3t &other) const |
| bool | operator== (const aiVector3t &other) const |
| TReal & | operator[] (unsigned int i) |
| access a single element, non-const. | |
| TReal | operator[] (unsigned int i) const |
| access a single element, const. | |
| void | Set (TReal pX, TReal pY, TReal pZ) |
| Set the components of a vector. | |
| TReal | SquareLength () const |
| Get the squared length of the vector. | |
| const aiVector3t | SymMul (const aiVector3t &o) |
| Componentwise multiplication of two vectors. | |
Public Attributes | |
| TReal | x |
| TReal | y |
| TReal | z |
|
inline |
The default class constructor.
|
inline |
The class constructor with the components.
| _x | The x-component for the vector. |
| _y | The y-component for the vector. |
| _z | The z-component for the vector. |
|
inlineexplicit |
The class constructor with a default value.
| _xyz | The value for x, y and z. |
|
default |
The copy constructor.
| o | The instance to copy from. |
| AI_FORCE_INLINE bool aiVector3t< TReal >::Equal | ( | const aiVector3t< TReal > & | other, |
| TReal | epsilon = ai_epsilon |
||
| ) | const |
| AI_FORCE_INLINE TReal aiVector3t< TReal >::Length | ( | ) | const |
Get the length of the vector.
| aiVector3t< TReal > & aiVector3t< TReal >::Normalize | ( | ) |
Normalize the vector.
| AI_FORCE_INLINE aiVector3t< TReal > & aiVector3t< TReal >::NormalizeSafe | ( | ) |
Normalize the vector with extra check for zero vectors.
| aiVector3t< TReal >::operator aiVector3t< TOther > | ( | ) | const |
| AI_FORCE_INLINE bool aiVector3t< TReal >::operator!= | ( | const aiVector3t< TReal > & | other | ) | const |
| AI_FORCE_INLINE aiVector3t< TReal > & aiVector3t< TReal >::operator*= | ( | const aiMatrix3x3t< TReal > & | mat | ) |
Transform vector by matrix.
| AI_FORCE_INLINE aiVector3t< TReal > & aiVector3t< TReal >::operator*= | ( | const aiMatrix4x4t< TReal > & | mat | ) |
| AI_FORCE_INLINE const aiVector3t< TReal > & aiVector3t< TReal >::operator*= | ( | TReal | f | ) |
The copy constructor.
| AI_FORCE_INLINE const aiVector3t< TReal > & aiVector3t< TReal >::operator+= | ( | const aiVector3t< TReal > & | o | ) |
combined operators
The copy constructor.
| AI_FORCE_INLINE const aiVector3t< TReal > & aiVector3t< TReal >::operator-= | ( | const aiVector3t< TReal > & | o | ) |
The copy constructor.
| AI_FORCE_INLINE const aiVector3t< TReal > & aiVector3t< TReal >::operator/= | ( | TReal | f | ) |
The copy constructor.
| AI_FORCE_INLINE bool aiVector3t< TReal >::operator< | ( | const aiVector3t< TReal > & | other | ) | const |
| AI_FORCE_INLINE bool aiVector3t< TReal >::operator== | ( | const aiVector3t< TReal > & | other | ) | const |
| AI_FORCE_INLINE TReal & aiVector3t< TReal >::operator[] | ( | unsigned int | i | ) |
access a single element, non-const.
| AI_FORCE_INLINE TReal aiVector3t< TReal >::operator[] | ( | unsigned int | i | ) | const |
access a single element, const.
| AI_FORCE_INLINE void aiVector3t< TReal >::Set | ( | TReal | pX, |
| TReal | pY, | ||
| TReal | pZ | ||
| ) |
Set the components of a vector.
| pX | X component |
| pY | Y component |
| pZ | Z component |
| AI_FORCE_INLINE TReal aiVector3t< TReal >::SquareLength | ( | ) | const |
Get the squared length of the vector.
| AI_FORCE_INLINE const aiVector3t< TReal > aiVector3t< TReal >::SymMul | ( | const aiVector3t< TReal > & | o | ) |
Componentwise multiplication of two vectors.
Note that vec*vec yields the dot product.
| o | Second factor |
| TReal aiVector3t< TReal >::x |
| TReal aiVector3t< TReal >::y |
| TReal aiVector3t< TReal >::z |