Subversion Repositories gelsvn

Rev

Rev 196 | Rev 248 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 196 Rev 197
Line 57... Line 57...
57
#define SQRT3 sqrt3()
57
#define SQRT3 sqrt3()
58
 
58
 
59
  /// Useful enum that represents coordiante axes.
59
  /// Useful enum that represents coordiante axes.
60
  enum Axis {XAXIS=0,YAXIS=1,ZAXIS=2};
60
  enum Axis {XAXIS=0,YAXIS=1,ZAXIS=2};
61
 
61
 
62
#ifdef WIN32
-
 
63
  inline bool isnan(double x) { return _isnan(x);}
62
  inline bool isnan(double x) { return x != x; }
64
#else
-
 
65
	inline bool isnan(double x) { return std::isnan(x);}
-
 
66
#endif
-
 
67
 
63
 
68
  template<class Scalar>
64
  template<class Scalar>
69
  Scalar s_min(Scalar a, Scalar b)
65
  Scalar s_min(Scalar a, Scalar b)
70
  {
66
  {
71
    return a<b ? a : b;
67
    return a<b ? a : b;