SPH
|
3-dimensional vector, float precision More...
#include <Vector.h>
Public Member Functions | |
INLINE | BasicVector ()=default |
INLINE | BasicVector (const __m128 data) |
Constructs from SSE vector. More... | |
INLINE | BasicVector (const float f) |
Constructs by copying a value to all vector components. More... | |
INLINE | BasicVector (const float x, const float y, const float z, const float h=0.f) |
Constructs the vector from given components. More... | |
INLINE | BasicVector (const BasicVector &v) |
Copy constructor. More... | |
INLINE const float & | operator[] (const int i) const |
Get component by given index. More... | |
INLINE float & | operator[] (const int i) |
Get component by given index. More... | |
template<int i> | |
INLINE const float & | get () const |
Get component by given compile-time constant index. More... | |
template<int i> | |
INLINE float & | get () |
Get component by given compile-time constant index. More... | |
INLINE const __m128 & | sse () const |
Returns the data as SSE vector. More... | |
INLINE BasicVector & | operator= (const BasicVector &v) |
Copy operator. More... | |
INLINE BasicVector & | operator+= (const BasicVector &v) |
INLINE BasicVector & | operator-= (const BasicVector &v) |
INLINE BasicVector & | operator*= (const float f) |
INLINE BasicVector & | operator/= (const float f) |
INLINE BasicVector & | operator*= (const BasicVector &v) |
INLINE BasicVector & | operator/= (const BasicVector &v) |
Friends | |
INLINE friend BasicVector | operator- (const BasicVector &v) |
INLINE friend BasicVector | operator+ (const BasicVector &v1, const BasicVector &v2) |
INLINE friend BasicVector | operator- (const BasicVector &v1, const BasicVector &v2) |
INLINE friend auto | operator* (const BasicVector &v, const float f) |
Multiplication of vector by a value or unit. More... | |
INLINE friend auto | operator* (const float f, const BasicVector &v) |
INLINE friend auto | operator* (const BasicVector &v1, const BasicVector &v2) |
INLINE friend auto | operator/ (const BasicVector &v, const float f) |
INLINE friend auto | operator/ (const BasicVector &v1, const BasicVector &v2) |
INLINE friend bool | operator== (const BasicVector &v1, const BasicVector &v2) |
Comparison operator, only compares first three components of vectors. More... | |
INLINE friend bool | operator!= (const BasicVector &v1, const BasicVector &v2) |
std::ostream & | operator<< (std::ostream &stream, const BasicVector &v) |
|
default |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |