SPH
|
Function for generic manipulation with geometric types. More...
Go to the source code of this file.
Functions | |
template<typename T > | |
NAMESPACE_SPH_BEGIN INLINE Float | norm (const T &value) |
Returns a norm, absolute value by default. More... | |
template<typename T > | |
INLINE Float | normSqr (const T &value) |
Squared value of the norm. More... | |
template<typename T > | |
INLINE Float | maxElement (const T &value) |
Returns maximum element, simply the value iself by default. More... | |
template<typename T > | |
INLINE Float | minElement (const T &value) |
Returns minimum element, simply the value iself by default. More... | |
template<typename T > | |
INLINE bool | isReal (const T &value) |
Checks for nans and infs. More... | |
template<typename T > | |
constexpr INLINE auto | less (const T &v1, const T &v2) |
Compares two objects of the same time component-wise. More... | |
template<typename T > | |
INLINE StaticArray< Float, 6 > | getComponents (const T &value) |
Returns the components of the object in array. More... | |
INLINE StaticArray<Float, 6> getComponents | ( | const T & | value | ) |
INLINE bool isReal | ( | const T & | value | ) |
|
constexpr |
Compares two objects of the same time component-wise.
Returns object containing components 0 or 1, depending whether components of the first objects are smaller than components of the second object.
NAMESPACE_SPH_BEGIN INLINE Float norm | ( | const T & | value | ) |