|
using | Length = typename SqrtTrait< Type >::Type |
| Return type of the Vector3<Type>::length function. More...
|
|
using | value_type = Type |
|
constexpr | Vector3 ()=default |
|
constexpr | Vector3 (Type init) |
| Constructor for a homogenous initialization of all elements. More...
|
|
template<typename Other > |
constexpr | Vector3 (Other init) |
|
constexpr | Vector3 (Type x, Type y, Type z) |
| Constructor for a direct initialization of all vector elements. More...
|
|
constexpr | Vector3 (const Type *init) |
| Constructor for an array initializer. More...
|
|
constexpr | Vector3 (const Vector3 &v)=default |
|
template<typename Other > |
constexpr | Vector3 (const Vector3< Other > &v) |
| Conversion constructor from different Vector3 instances. More...
|
|
template<typename Other > |
Vector3< Type > & | operator= (const Vector3< Other > &v) |
|
template<typename Other > |
Vector3< Type > & | operator%= (const Vector3< Other > &rhs) |
|
template<typename Other > |
Vector3< Type > & | operator+= (const Vector3< Other > &rhs) |
|
template<typename Other > |
Vector3< Type > & | operator-= (const Vector3< Other > &rhs) |
|
template<typename Other > |
Vector3< Type > & | operator*= (Other rhs) |
|
template<typename Other > |
Vector3< Type > & | operator/= (Other rhs) |
|
Vector3 & | operator= (const Vector3 &v)=default |
|
template<typename Other > |
Vector3 & | operator= (const Vector3< Other > &v) |
| Assignment operator for different Vector3 instances. More...
|
|
template<typename Other > |
bool | operator== (Other rhs) const |
| Equality operator for the comparison of a vector and a scalar value. More...
|
|
template<typename Other > |
bool | operator== (const Vector3< Other > &rhs) const |
| Equality operator for the comparison of two vectors. More...
|
|
template<typename Other > |
bool | operator!= (Other rhs) const |
| Inequality operator for the comparison of a vector and a scalar value. More...
|
|
template<typename Other > |
bool | operator!= (const Vector3< Other > &rhs) const |
| Inequality operator for the comparison of two vectors. More...
|
|
Type & | operator[] (uint_t index) |
| Subscript operator for the direct access to the vector elements. More...
|
|
const Type & | operator[] (uint_t index) const |
| Subscript operator for the direct access to the vector elements. More...
|
|
Vector3 | operator- () const |
| Unary minus operator for the inversion of a vector ( \( \vec{a} = -\vec{b} \)). More...
|
|
template<typename Other > |
Vector3 & | operator%= (const Vector3< Other > &rhs) |
| Cross product (outer product) of two vectors ( \( \vec{a}=\vec{b}\times\vec{c} \)). More...
|
|
template<typename Other > |
Vector3 & | operator+= (const Vector3< Other > &rhs) |
| Addition assignment operator for the addition of two vectors ( \( \vec{a}+=\vec{b} \)). More...
|
|
template<typename Other > |
Vector3 & | operator-= (const Vector3< Other > &rhs) |
| Subtraction assignment operator for the subtraction of two vectors. More...
|
|
template<typename Other > |
Vector3 & | operator*= (Other rhs) |
| Multiplication assignment operator for the multiplication between a vector and. More...
|
|
template<typename Other > |
Vector3 & | operator/= (Other rhs) |
| Division assignment operator for the division of a vector by a scalar value. More...
|
|
template<typename Other > |
Vector3< typename MathTrait< Type, Other >::High > | operator% (const Vector3< Other > &rhs) const |
| Cross product (outer product) of two vectors ( \( \vec{a}=\vec{b}\times\vec{c} \)). More...
|
|
template<typename Other > |
Vector3< typename MathTrait< Type, Other >::High > | operator+ (const Vector3< Other > &rhs) const |
| Addition operator for the addition of two vectors ( \( \vec{a}=\vec{b}+\vec{c} \)). More...
|
|
template<typename Other > |
Vector3< typename MathTrait< Type, Other >::High > | operator- (const Vector3< Other > &rhs) const |
| Subtraction operator for the subtraction of two vectors ( \( \vec{a}=\vec{b}-\vec{c} \)). More...
|
|
template<typename Other > |
Vector3< typename MathTrait< Type, Other >::High > | operator* (Other rhs) const |
| Multiplication operator for the multiplication of a vector and a scalar value. More...
|
|
template<typename Other > |
MathTrait< Type, Other >::High | operator* (const Vector3< Other > &rhs) const |
| Multiplication operator for the scalar product (inner product) of two vectors. More...
|
|
template<typename Other > |
Vector3< typename MathTrait< Type, Other >::High > | operator/ (Other rhs) const |
| Division operator for the division of a vector by a scalar value. More...
|
|
uint_t | indexOfMax () const |
| Returns index of absolute maximum value. More...
|
|
uint_t | indexOfMin () const |
| Returns index of absolute minimum value. More...
|
|
Type | max () const |
| Returns maximum value. More...
|
|
Type | min () const |
| Returns minimum value. More...
|
|
void | set (Type x, Type y, Type z) |
| Set function for a direct assignment of all vector elements. More...
|
|
Length | length () const |
| Calculation of the vector length \(|\vec{a}|\). More...
|
|
Type | sqrLength () const |
| Calculation of the vector square length \(|\vec{a}|^2\). More...
|
|
Vector3< Length > | getNormalized () const |
| Calculation of the normalized vector ( \(|\vec{a}|=1\)). More...
|
|
Vector3< Length > | getNormalizedOrZero () const |
| Calculation of the normalized vector ( \(|\vec{a}|=1\)) without precondition. More...
|
|
Vector3< Length > | getNormalizedIfNotZero () const |
| Calculation of the normalized vector ( \(|\vec{a}|=1\)) without precondition. More...
|
|
void | reset () |
| Sets all components of the vector to 0. More...
|
|
Type * | data () |
|
const Type * | data () const |
|