66 #define SO_VERSION_REVISION 5
67 #define SO_VERSION_PATCHLEVEL 1
68 #define SGI_VERSION 20501
72 #include <sys/types.h>
100 template <
class Type>
101 inline Type SbAbs( Type Val ) {
102 return (Val < 0) ? 0 - Val : Val;
105 template <
class Type>
106 inline void SbSwap( Type &A, Type &B ) {
107 Type T; T = A; A = B; B = T;
110 template <
class Type>
111 inline Type SbMin(
const Type A,
const Type B ) {
112 return (A < B) ? A : B;
115 template <
class Type>
116 inline Type SbMax(
const Type A,
const Type B ) {
117 return (A < B) ? B : A;
120 template <
class Type>
121 inline Type SbClamp(
const Type Val,
const Type Min,
const Type Max ) {
122 return (Val < Min) ? Min : (Val > Max) ? Max : Val;
158 #define M_E 2.7182818284590452354
161 #define M_LOG2E 1.4426950408889634074
164 #define M_LOG10E 0.43429448190325182765
167 #define M_LN2 0.69314718055994530942
170 #define M_LN10 2.30258509299404568402
173 #define M_PI 3.14159265358979323846
176 #define M_PI_2 1.57079632679489661923
179 #define M_PI_4 0.78539816339744830962
182 #define M_1_PI 0.31830988618379067154
185 #define M_2_PI 0.63661977236758134308
188 #define M_2_SQRTPI 1.12837916709551257390
191 #define M_SQRT2 1.41421356237309504880
194 #define M_SQRT1_2 0.70710678118654752440
197 #define MAXFLOAT ((float)3.40282346638528860e+38)
207 #ifdef _DOUBLE_MATH_ONLY
bool SbBool
The original OIV version used SbBool as a typedef to int.
size_t SbNodeIdType
Type of unique ids of SoNode, used in the notification/change detection handling.