27 #include <Inventor/C/errors/debugerror.h> 
   28 #include <Inventor/C/basic.h> 
   35 #error You are not compiling C++ - maybe your source file is named <file>.c 
   57 inline Type SbAbs( Type Val ) {
 
   58   return (Val < 0) ? 0 - Val : Val;
 
   62 inline Type SbMax( 
const Type A, 
const Type B ) {
 
   63   return (A < B) ? B : A;
 
   67 inline Type SbMin( 
const Type A, 
const Type B ) {
 
   68   return (A < B) ? A : B;
 
   72 inline Type SbClamp( 
const Type Val, 
const Type Min, 
const Type Max ) {
 
   73   return (Val < Min) ? Min : (Val > Max) ? Max : Val;
 
   77 inline void SbSwap( Type & A, Type & B ) {
 
   78   Type T; T = A; A = B; B = T;
 
   82 inline Type SbSqr(
const Type val) {
 
   96 template <
typename Type>
 
   97 inline void SbDividerChk(
const char * funcname, Type divider) {
 
   99   if (!(divider != static_cast<Type>(0)))
 
  100     cc_debugerror_post(funcname, 
"divide by zero error.", divider);
 
  144 #define SUN_CC_4_0_SOTYPE_INIT_BUG 0  
  146 #if SUN_CC_4_0_SOTYPE_INIT_BUG 
  147 #define STATIC_SOTYPE_INIT 
  149 #define STATIC_SOTYPE_INIT = SoType::badType()