Subversion Repositories gelsvn

Rev

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

Rev 45 Rev 55
Line 39... Line 39...
39
  const double SQRT3=sqrt(3.0);
39
  const double SQRT3=sqrt(3.0);
40
 
40
 
41
  /// Useful enum that represents coordiante axes.
41
  /// Useful enum that represents coordiante axes.
42
  enum Axis {XAXIS=0,YAXIS=1,ZAXIS=2};
42
  enum Axis {XAXIS=0,YAXIS=1,ZAXIS=2};
43
 
43
 
-
 
44
#ifdef WIN32
-
 
45
	inline bool isnan(double x) { return _isnan(x);}
-
 
46
#else
-
 
47
	inline bool isnan(double x) { return std::isnan(x);}
-
 
48
#endif
-
 
49
 
44
  template<class Scalar>
50
  template<class Scalar>
45
  Scalar s_min(Scalar a, Scalar b)
51
  Scalar s_min(Scalar a, Scalar b)
46
  {
52
  {
47
    return a<b ? a : b;
53
    return a<b ? a : b;
48
  }
54
  }