00001 // ThyrixParameters.h: interface for the ThyrixParameters class. 00002 // 00004 00005 #if !defined(AFX_THYRIXPARAMETERS_H__442475F3_9963_4247_8192_1505B7F7E4D5__INCLUDED_) 00006 #define AFX_THYRIXPARAMETERS_H__442475F3_9963_4247_8192_1505B7F7E4D5__INCLUDED_ 00007 00008 00009 #include <math.h> 00010 00012 typedef double real; 00013 00015 template<class Number> inline Number sqr(Number x){ return x*x; } 00016 00018 #ifndef M_PI 00019 #define M_PI 3.1415926535897932384626433832795028841971693993751058209749445923078164062862 00020 #endif 00021 00023 const real degrees=M_PI/180.0; 00024 00025 00026 //#define ARRAYSIZE(x) (sizeof(x) / sizeof(x[0])) 00027 00030 class ThyrixParameters { 00031 public: 00032 ThyrixParameters(); 00033 virtual ~ThyrixParameters(); 00034 00036 static const real epsilonContact; 00037 00039 static const real halfEpsilonContact; 00040 00042 static const real defaultDensity; 00043 00045 static const real kContact; 00046 00048 static const real infinity; 00049 00051 static real kMouseForce; 00052 00053 }; 00054 00055 #endif // !defined(AFX_THYRIXPARAMETERS_H__442475F3_9963_4247_8192_1505B7F7E4D5__INCLUDED_)
Thyrix homepage Users' guide
(C) Arxia 2004-2005