MathUtils.h File Reference
#include <Core/Utils/Macros.h>
#include <cstddef>
#include <limits>
#include <Core/Math/MathUtils-Impl.h>
Go to the source code of this file.
Namespaces | |
CubbyFlow | |
Functions | |
template<typename T > | |
bool | CubbyFlow::Similar (T x, T y, T eps=std::numeric_limits< T >::epsilon()) |
Returns true if x and y are similar. More... | |
template<typename T > | |
T | CubbyFlow::Sign (T x) |
Returns the sign of the value. More... | |
template<typename T > | |
T | CubbyFlow::AbsMin (T x, T y) |
Returns the absolute minimum value among the two inputs. More... | |
template<typename T > | |
T | CubbyFlow::AbsMax (T x, T y) |
Returns the absolute maximum value among the two inputs. More... | |
template<typename T > | |
T | CubbyFlow::AbsMinN (const T *x, size_t n) |
Returns absolute minimum among n-elements. More... | |
template<typename T > | |
T | CubbyFlow::AbsMaxN (const T *x, size_t n) |
Returns absolute maximum among n-elements. More... | |
template<typename T > | |
size_t | CubbyFlow::ArgMin2 (T x, T y) |
template<typename T > | |
size_t | CubbyFlow::ArgMax2 (T x, T y) |
template<typename T > | |
size_t | CubbyFlow::ArgMin3 (T x, T y, T z) |
template<typename T > | |
size_t | CubbyFlow::ArgMax3 (T x, T y, T z) |
template<typename T > | |
T | CubbyFlow::Square (T x) |
Returns the square of x . More... | |
template<typename T > | |
T | CubbyFlow::Cubic (T x) |
Returns the cubic of x . More... | |
template<typename T > | |
T | CubbyFlow::Clamp (T val, T low, T high) |
Returns the clamped value. More... | |
template<typename T > | |
T | CubbyFlow::DegreesToRadians (T angleInDegrees) |
Converts degrees to radians. More... | |
template<typename T > | |
T | CubbyFlow::RadiansToDegrees (T angleInRadians) |
Converts radians to degrees. More... | |
template<typename T > | |
void | CubbyFlow::GetBarycentric (T x, ssize_t iLow, ssize_t iHigh, ssize_t *i, T *t) |
Gets the barycentric coordinate. More... | |
template<typename S , typename T > | |
S | CubbyFlow::Lerp (const S &f0, const S &f1, T t) |
Computes linear interpolation. More... | |
template<typename S , typename T > | |
S | CubbyFlow::BiLerp (const S &f00, const S &f10, const S &f01, const S &f11, T tx, T ty) |
Computes bilinear interpolation. More... | |
template<typename S , typename T > | |
S | CubbyFlow::TriLerp (const S &f000, const S &f100, const S &f010, const S &f110, const S &f001, const S &f101, const S &f011, const S &f111, T tx, T ty, T tz) |
Computes trilinear interpolation. More... | |
template<typename S , typename T > | |
S | CubbyFlow::CatmullRom (const S &f0, const S &f1, const S &f2, const S &f3, T t) |
Computes Catmull-Rom interpolation. More... | |
template<typename T > | |
T | CubbyFlow::MonotonicCatmullRom (const T &f0, const T &f1, const T &f2, const T &f3, T t) |
Computes monotonic Catmull-Rom interpolation. More... | |