HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImathFun.h File Reference
#include <limits>
#include <cstdint>
#include "ImathExport.h"
#include "ImathNamespace.h"
#include "ImathPlatform.h"
+ Include dependency graph for ImathFun.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class T >
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER
IMATH_HOSTDEVICE constexpr T 
abs (T a) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE constexpr int sign (T a) IMATH_NOEXCEPT
 
template<class T , class Q >
IMATH_HOSTDEVICE constexpr T lerp (T a, T b, Q t) IMATH_NOEXCEPT
 
template<class T , class Q >
IMATH_HOSTDEVICE constexpr T ulerp (T a, T b, Q t) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 T 
lerpfactor (T m, T a, T b) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE constexpr T clamp (T a, T l, T h) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE constexpr int cmp (T a, T b) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE constexpr int cmpt (T a, T b, T t) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE constexpr bool iszero (T a, T t) IMATH_NOEXCEPT
 
template<class T1 , class T2 , class T3 >
IMATH_HOSTDEVICE constexpr bool equal (T1 a, T2 b, T3 t) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE constexpr int floor (T x) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE constexpr int ceil (T x) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE constexpr int trunc (T x) IMATH_NOEXCEPT
 
IMATH_HOSTDEVICE constexpr int divs (int x, int y) IMATH_NOEXCEPT
 
IMATH_HOSTDEVICE constexpr int mods (int x, int y) IMATH_NOEXCEPT
 
IMATH_HOSTDEVICE constexpr int divp (int x, int y) IMATH_NOEXCEPT
 
IMATH_HOSTDEVICE constexpr int modp (int x, int y) IMATH_NOEXCEPT
 
IMATH_EXPORT float succf (float f) IMATH_NOEXCEPT
 
IMATH_EXPORT float predf (float f) IMATH_NOEXCEPT
 
IMATH_EXPORT double succd (double d) IMATH_NOEXCEPT
 
IMATH_EXPORT double predd (double d) IMATH_NOEXCEPT
 
IMATH_HOSTDEVICE bool finitef (float f) IMATH_NOEXCEPT
 
IMATH_HOSTDEVICE bool finited (double d) IMATH_NOEXCEPT
 

Function Documentation

template<class T >
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER IMATH_HOSTDEVICE constexpr T abs ( a)
inline

Definition at line 26 of file ImathFun.h.

template<class T >
IMATH_HOSTDEVICE constexpr int ceil ( x)
inline

Definition at line 119 of file ImathFun.h.

template<class T >
IMATH_HOSTDEVICE constexpr T clamp ( a,
l,
h 
)
inline

Definition at line 77 of file ImathFun.h.

template<class T >
IMATH_HOSTDEVICE constexpr int cmp ( a,
b 
)
inline

Definition at line 84 of file ImathFun.h.

template<class T >
IMATH_HOSTDEVICE constexpr int cmpt ( a,
b,
t 
)
inline

Definition at line 91 of file ImathFun.h.

IMATH_HOSTDEVICE constexpr int divp ( int  x,
int  y 
)
inline

Definition at line 160 of file ImathFun.h.

IMATH_HOSTDEVICE constexpr int divs ( int  x,
int  y 
)
inline
Examples:
RAY/RAY_DemoSprite.C, and SOP/SOP_Flatten.C.

Definition at line 140 of file ImathFun.h.

template<class T1 , class T2 , class T3 >
IMATH_HOSTDEVICE constexpr bool equal ( T1  a,
T2  b,
T3  t 
)
inline

Definition at line 105 of file ImathFun.h.

IMATH_HOSTDEVICE bool finited ( double  d)
inline

Definition at line 217 of file ImathFun.h.

IMATH_HOSTDEVICE bool finitef ( float  f)
inline

Definition at line 204 of file ImathFun.h.

template<class T >
IMATH_HOSTDEVICE constexpr int floor ( x)
inline
Examples:
alligator/alligator.C.

Definition at line 112 of file ImathFun.h.

template<class T >
IMATH_HOSTDEVICE constexpr bool iszero ( a,
t 
)
inline

Definition at line 98 of file ImathFun.h.

template<class T , class Q >
IMATH_HOSTDEVICE constexpr T lerp ( a,
b,
t 
)
inline

Definition at line 40 of file ImathFun.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 T lerpfactor ( m,
a,
b 
)
inline

Definition at line 54 of file ImathFun.h.

IMATH_HOSTDEVICE constexpr int modp ( int  x,
int  y 
)
inline

Definition at line 167 of file ImathFun.h.

IMATH_HOSTDEVICE constexpr int mods ( int  x,
int  y 
)
inline

Definition at line 146 of file ImathFun.h.

IMATH_EXPORT double predd ( double  d)
IMATH_EXPORT float predf ( float  f)
template<class T >
IMATH_HOSTDEVICE constexpr int sign ( a)
inline
IMATH_EXPORT double succd ( double  d)
IMATH_EXPORT float succf ( float  f)
template<class T >
IMATH_HOSTDEVICE constexpr int trunc ( x)
inline

Definition at line 126 of file ImathFun.h.

template<class T , class Q >
IMATH_HOSTDEVICE constexpr T ulerp ( a,
b,
t 
)
inline

Definition at line 47 of file ImathFun.h.