HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImathFun.h File Reference
#include "ImathExport.h"
#include "ImathLimits.h"
#include "ImathInt64.h"
#include "ImathNamespace.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
abs (T a)
 
template<class T >
int sign (T a)
 
template<class T , class Q >
lerp (T a, T b, Q t)
 
template<class T , class Q >
ulerp (T a, T b, Q t)
 
template<class T >
lerpfactor (T m, T a, T b)
 
template<class T >
clamp (T a, T l, T h)
 
template<class T >
int cmp (T a, T b)
 
template<class T >
int cmpt (T a, T b, T t)
 
template<class T >
bool iszero (T a, T t)
 
template<class T1 , class T2 , class T3 >
bool equal (T1 a, T2 b, T3 t)
 
template<class T >
int floor (T x)
 
template<class T >
int ceil (T x)
 
template<class T >
int trunc (T x)
 
int divs (int x, int y)
 
int mods (int x, int y)
 
int divp (int x, int y)
 
int modp (int x, int y)
 
IMATH_EXPORT float succf (float f)
 
IMATH_EXPORT float predf (float f)
 
IMATH_EXPORT double succd (double d)
 
IMATH_EXPORT double predd (double d)
 
bool finitef (float f)
 
bool finited (double d)
 

Function Documentation

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

Definition at line 55 of file ImathFun.h.

template<class T >
int ceil ( x)
inline

Definition at line 158 of file ImathFun.h.

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

Definition at line 111 of file ImathFun.h.

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

Definition at line 119 of file ImathFun.h.

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

Definition at line 127 of file ImathFun.h.

int divp ( int  x,
int  y 
)
inline

Definition at line 204 of file ImathFun.h.

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

Definition at line 180 of file ImathFun.h.

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

Definition at line 143 of file ImathFun.h.

bool finited ( double  d)
inline

Definition at line 258 of file ImathFun.h.

bool finitef ( float  f)
inline

Definition at line 249 of file ImathFun.h.

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

Definition at line 150 of file ImathFun.h.

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

Definition at line 135 of file ImathFun.h.

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

Definition at line 71 of file ImathFun.h.

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

Definition at line 87 of file ImathFun.h.

int modp ( int  x,
int  y 
)
inline

Definition at line 212 of file ImathFun.h.

int mods ( int  x,
int  y 
)
inline

Definition at line 188 of file ImathFun.h.

IMATH_EXPORT double predd ( double  d)
IMATH_EXPORT float predf ( float  f)
template<class T >
int sign ( a)
inline

Definition at line 63 of file ImathFun.h.

IMATH_EXPORT double succd ( double  d)
IMATH_EXPORT float succf ( float  f)
template<class T >
int trunc ( x)
inline

Definition at line 165 of file ImathFun.h.

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

Definition at line 79 of file ImathFun.h.