Subversion Repositories gelsvn

Rev

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

Rev 195 Rev 196
Line 19... Line 19...
19
 
19
 
20
namespace CGLA 
20
namespace CGLA 
21
{
21
{
22
		inline float cgla_nan() 
22
		inline float cgla_nan() 
23
		{
23
		{
24
				static const float cgla_nan_value = log(1.0f);
24
				static const float cgla_nan_value = log(-1.0f);
25
				return cgla_nan_value;
25
				return cgla_nan_value;
26
		}
26
		}
27
		
27
		
28
  /** Procedural definition of NAN */  
28
  /** Procedural definition of NAN */  
29
#define CGLA_NAN cgla_nan()
29
#define CGLA_NAN cgla_nan()
Line 58... Line 58...
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
62
#ifdef WIN32
63
	inline bool isnan(double x) { return _isnan(x);}
63
  inline bool isnan(double x) { return _isnan(x);}
64
#else
64
#else
65
	inline bool isnan(double x) { return std::isnan(x);}
65
	inline bool isnan(double x) { return std::isnan(x);}
66
#endif
66
#endif
67
 
67
 
68
  template<class Scalar>
68
  template<class Scalar>