Subversion Repositories gelsvn

Rev

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

Rev 630 Rev 632
Line 77... Line 77...
77
  /// Useful enum that represents coordiante axes.
77
  /// Useful enum that represents coordiante axes.
78
  enum Axis {XAXIS=0,YAXIS=1,ZAXIS=2};
78
  enum Axis {XAXIS=0,YAXIS=1,ZAXIS=2};
79
 
79
 
80
  inline bool isnan(double x) { return x != x; }
80
  inline bool isnan(double x) { return x != x; }
81
 
81
 
82
  template<class Scalar>
-
 
83
  Scalar s_min(Scalar a, Scalar b)
-
 
84
  {
-
 
85
    return a<b ? a : b;
-
 
86
  }
-
 
87
 
-
 
88
  template<class Scalar>
-
 
89
  Scalar s_max(Scalar a, Scalar b)
-
 
90
  {
-
 
91
    return a>b ? a : b;
-
 
92
  }
-
 
93
 
-
 
94
  /// Template for a function that squares the argument.
82
  /// Template for a function that squares the argument.
95
  template <class Scalar>
83
  template <class Scalar>
96
  inline Scalar sqr(Scalar x) {///
84
  inline Scalar sqr(Scalar x) {///
97
    return x*x;}
85
    return x*x;}
98
	
86