MathUtils.hpp
Go to the documentation of this file.
std::enable_if_t< std::is_arithmetic< T >::value, size_t > ArgMax2(T x, T y)
Definition: MathUtils-Impl.hpp:122
std::enable_if_t< std::is_arithmetic< T >::value, size_t > ArgMax3(T x, T y, T z)
Definition: MathUtils-Impl.hpp:141
std::enable_if_t< std::is_arithmetic< T >::value, S > Lerp(const S &f0, const S &f1, T t)
Computes linear interpolation.
Definition: MathUtils-Impl.hpp:295
std::enable_if_t< std::is_arithmetic< T >::value, T > Clamp(T val, T low, T high)
Returns the clamped value.
Definition: MathUtils-Impl.hpp:166
std::enable_if_t< std::is_arithmetic< T >::value, T > Square(T x)
Returns the square of x.
Definition: MathUtils-Impl.hpp:154
std::enable_if_t< std::is_arithmetic< T >::value > GetBarycentric(T x, size_t begin, size_t end, size_t &i, T &t)
Computes the barycentric coordinate.
Definition: MathUtils-Impl.hpp:196
std::enable_if_t< std::is_arithmetic< T >::value, size_t > ArgMin2(T x, T y)
Definition: MathUtils-Impl.hpp:116
std::enable_if_t< std::is_arithmetic< T >::value, T > Sign(T x)
Returns the sign of the value.
Definition: MathUtils-Impl.hpp:29
std::enable_if_t< std::is_arithmetic< T >::value, T > DegreesToRadians(T angleInDegrees)
Converts degrees to radians.
Definition: MathUtils-Impl.hpp:182
std::enable_if_t< std::is_arithmetic< T >::value, T > Max3(T x, T y, T z)
Returns the maximum value among three inputs.
Definition: MathUtils-Impl.hpp:46
std::enable_if_t< std::is_arithmetic< T >::value, bool > Similar(T x, T y, T eps)
Returns true if x and y are similar.
Definition: MathUtils-Impl.hpp:23
std::enable_if_t< std::is_arithmetic< T >::value, T > AbsMaxN(const T *x, size_t n)
Returns absolute maximum among n-elements.
Definition: MathUtils-Impl.hpp:103
std::enable_if_t< std::is_arithmetic< T >::value, T > AbsMinN(const T *x, size_t n)
Returns absolute minimum among n-elements.
Definition: MathUtils-Impl.hpp:90
std::enable_if_t< std::is_arithmetic< T >::value, S > BiLerp(const S &f00, const S &f10, const S &f01, const S &f11, T tx, T ty)
Computes bilinear interpolation.
Definition: MathUtils-Impl.hpp:302
Definition: pybind11Utils.hpp:20
std::enable_if_t< std::is_arithmetic< T >::value, T > Min3(T x, T y, T z)
Returns the minimum value among three inputs.
Definition: MathUtils-Impl.hpp:40
std::enable_if_t< std::is_arithmetic< T >::value, T > Cubic(T x)
Returns the cubic of x.
Definition: MathUtils-Impl.hpp:160
std::enable_if_t< std::is_arithmetic< T >::value, S > 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.
Definition: MathUtils-Impl.hpp:309
std::enable_if_t< std::is_arithmetic< T >::value, S > CatmullRom(const S &f0, const S &f1, const S &f2, const S &f3, T t)
Computes Catmull-Rom interpolation.
Definition: MathUtils-Impl.hpp:318
std::enable_if_t< std::is_arithmetic< T >::value, T > AbsMax(T x, T y)
Returns the absolute maximum value among the two inputs.
Definition: MathUtils-Impl.hpp:84
std::enable_if_t< std::is_arithmetic< T >::value, T > AbsMin(T x, T y)
Returns the absolute minimum value among the two inputs.
Definition: MathUtils-Impl.hpp:78
std::enable_if_t< std::is_arithmetic< T >::value, size_t > ArgMin3(T x, T y, T z)
Definition: MathUtils-Impl.hpp:128
std::enable_if_t< std::is_arithmetic< T >::value, T > MonotonicCatmullRom(const T &f0, const T &f1, const T &f2, const T &f3, T t)
Computes monotonic Catmull-Rom interpolation.
Definition: MathUtils-Impl.hpp:336
std::enable_if_t< std::is_arithmetic< T >::value, T > MaxN(const T *x, size_t n)
Returns maximum among n-elements.
Definition: MathUtils-Impl.hpp:65
std::enable_if_t< std::is_arithmetic< T >::value, T > RadiansToDegrees(T angleInRadians)
Converts radians to degrees.
Definition: MathUtils-Impl.hpp:189
std::enable_if_t< std::is_arithmetic< T >::value, T > MinN(const T *x, size_t n)
Returns minimum among n-elements.
Definition: MathUtils-Impl.hpp:52