|
PXR_NAMESPACE_OPEN_SCOPE bool | GfIsClose (double a, double b, double epsilon) |
|
double | GfRadiansToDegrees (double radians) |
|
double | GfDegreesToRadians (double degrees) |
|
template<class T > |
double | GfSqr (const T &x) |
|
template<typename T > |
T | GfSgn (T v) |
|
double | GfSqrt (double f) |
|
float | GfSqrt (float f) |
|
double | GfExp (double f) |
|
float | GfExp (float f) |
|
double | GfLog (double f) |
|
float | GfLog (float f) |
|
double | GfFloor (double f) |
|
float | GfFloor (float f) |
|
double | GfCeil (double f) |
|
float | GfCeil (float f) |
|
double | GfAbs (double f) |
|
float | GfAbs (float f) |
|
double | GfRound (double f) |
|
float | GfRound (float f) |
|
double | GfPow (double f, double p) |
|
float | GfPow (float f, float p) |
|
double | GfSin (double v) |
|
float | GfSin (float v) |
|
double | GfCos (double v) |
|
float | GfCos (float v) |
|
void | GfSinCos (double v, double *s, double *c) |
|
void | GfSinCos (float v, float *s, float *c) |
|
double | GfClamp (double value, double min, double max) |
|
float | GfClamp (float value, float min, float max) |
|
GF_API double | GfMod (double a, double b) |
|
GF_API float | GfMod (float a, float b) |
|
template<class T > |
T | GfLerp (double alpha, const T &a, const T &b) |
|
template<class T > |
T | GfMin (T a1, T a2) |
|
template<class T > |
T | GfMin (T a1, T a2, T a3) |
|
template<class T > |
T | GfMin (T a1, T a2, T a3, T a4) |
|
template<class T > |
T | GfMin (T a1, T a2, T a3, T a4, T a5) |
|
template<class T > |
T | GfMax (T a1, T a2) |
|
template<class T > |
T | GfMax (T a1, T a2, T a3) |
|
template<class T > |
T | GfMax (T a1, T a2, T a3, T a4) |
|
template<class T > |
T | GfMax (T a1, T a2, T a3, T a4, T a5) |
|
template<typename Left , typename Right , std::enable_if_t< GfIsArithmetic< Left >::value &&GfIsArithmetic< Right >::value, int > = 0> |
decltype(std::declval< Left >
()*std::declval< Right >()) | GfDot (Left left, Right right) |
|
template<typename Left , typename Right , std::enable_if_t< GfIsArithmetic< Left >::value &&GfIsArithmetic< Right >::value, int > = 0> |
decltype(std::declval< Left >
()*std::declval< Right >()) | GfCompMult (Left left, Right right) |
|
template<typename Left , typename Right , std::enable_if_t< GfIsArithmetic< Left >::value &&GfIsArithmetic< Right >::value, int > = 0> |
decltype(std::declval< Left >
()/std::declval< Right >()) | GfCompDiv (Left left, Right right) |
|
Assorted mathematical utility functions.
Definition in file math.h.
template<typename Left , typename Right , std::enable_if_t< GfIsArithmetic< Left >::value &&GfIsArithmetic< Right >::value, int > = 0>
decltype(std::declval<Left>() / std::declval<Right>()) GfCompDiv |
( |
Left |
left, |
|
|
Right |
right |
|
) |
| |
|
inline |
Returns component-wise quotient of vectors. For scalar types, this is just the regular quotient.
Definition at line 264 of file math.h.
template<typename Left , typename Right , std::enable_if_t< GfIsArithmetic< Left >::value &&GfIsArithmetic< Right >::value, int > = 0>
decltype(std::declval<Left>() * std::declval<Right>()) GfCompMult |
( |
Left |
left, |
|
|
Right |
right |
|
) |
| |
|
inline |
Returns component-wise multiplication of vectors. For scalar types, this is just the regular product.
Definition at line 253 of file math.h.
template<typename Left , typename Right , std::enable_if_t< GfIsArithmetic< Left >::value &&GfIsArithmetic< Right >::value, int > = 0>
decltype(std::declval<Left>() * std::declval<Right>()) GfDot |
( |
Left |
left, |
|
|
Right |
right |
|
) |
| |
|
inline |
Returns the dot (inner) product of two vectors. For scalar types, this is just the regular product.
Definition at line 242 of file math.h.
GF_API double GfMod |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
The mod function with "correct" behaviour for negative numbers.
If a
= n
b
for some integer n
, zero is returned. Otherwise, for positive a
, the value returned is fmod(a,b)
, and for negative a
, the value returned is fmod(a,b)+b
.
Return the signum of v
(i.e. -1, 0, or 1).
The type T
must implement the < and > operators; the function returns zero only if value neither positive, nor negative.
Definition at line 74 of file math.h.