HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Math.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT library math support
7  *
8  * COMMENTS:
9  * void UT_fastRandomSeed(int seed)
10  * Seed the fast random number generator
11  *
12  * fpreal UT_fastRandom(void)
13  * Really, really fast random number generation - pretty good
14  * distribution of sequential random numbers
15  *
16  * Ref. Numerical Recipes (pp 284)
17  *
18  * Currently, only the fast random number generation is included
19  * here, however, in the future, there may be other utilities.
20  *
21  * CAVEATS:
22  * By including this header file, static data will be allocated.
23  */
24 
25 #ifndef __UT_Math_h__
26 #define __UT_Math_h__
27 
28 #include <SYS/SYS_Math.h>
29 
30 #if defined(_MSC_VER)
31  #pragma message ("Deprecated in Houdini 13.0. Use SYS_Math.h instead.")
32 #else
33  #warning "Deprecated in Houdini 13.0. Use SYS_Math.h instead."
34 #endif
35 
36 #define UTwang_inthash SYSwang_inthash
37 #define UTwang_inthash64 SYSwang_inthash64
38 #define UTfastRandom SYSfastRandom
39 #define UTrandom SYSrandom
40 #define UTfastRandomZero SYSfastRandomZero
41 #define UTrandomZero SYSrandomZero
42 
43 #define UTatan2(y,x) SYSatan(y,x)
44 #define UTacos SYSacos
45 #define UTasin SYSasin
46 #define UTdegToRad SYSdegToRad
47 #define UTradToDeg SYSradToDeg
48 
49 #define UTmax SYSmax
50 #define UTmin SYSmin
51 #define UTabs SYSabs
52 
53 #define UTequalZero SYSequalZero
54 #define UTisEqual SYSisEqual
55 #define UTisGreaterOrEqual SYSisGreaterOrEqual
56 #define UTisGreater SYSisGreater
57 #define UTisLessOrEqual SYSisLessOrEqual
58 #define UTisLess SYSisLess
59 
60 #define UTclamp SYSclamp
61 #define UTroundDownToMultipleOf SYSroundDownToMultipleOf
62 #define UTroundUpToMultipleOf SYSroundUpToMultipleOf
63 #define UTfit SYSfit
64 #define UTsmooth SYSsmooth
65 
66 #define UTisInt SYSisInt
67 #define UTisFloat SYSisFloat
68 
69 #define UTroundAngle SYSroundAngle
70 #define UTisPrime SYSisPrime
71 #define UTmakePrime SYSmakePrime
72 #define UTnextPrime SYSnextPrime
73 #define UTisPow2 SYSisPow2
74 #define UTmakePow2 SYSmakePow2
75 
76 #define UTgetSinCosFromSlope SYSgetSinCosFromSlope
77 
78 #endif