summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
75d05bd)
# define HALF_PI (PI/2)
#endif
# define HALF_PI (PI/2)
#endif
+#define ANGLE_EPSILON (1.0e-6)
+
/* === T Y P E D E F S ===================================================== */
/* === C L A S S E S & S T R U C T S ======================================= */
/* === T Y P E D E F S ===================================================== */
/* === C L A S S E S & S T R U C T S ======================================= */
on the unit circle. */
bool
operator==(const angle &rhs)const
on the unit circle. */
bool
operator==(const angle &rhs)const
- { return std::abs(dist(rhs).v)<epsilon; }
+ { return std::abs(dist(rhs).v)<ANGLE_EPSILON; }
/*! Returns false if the angles
are refer to the same point
on the unit circle. */
bool
operator!=(const angle &rhs)const
/*! Returns false if the angles
are refer to the same point
on the unit circle. */
bool
operator!=(const angle &rhs)const
- { return std::abs(dist(rhs).v)>epsilon; }
+ { return std::abs(dist(rhs).v)>ANGLE_EPSILON; }
//! Absolute Angle Function
/*! This function will return the
//! Absolute Angle Function
/*! This function will return the
- bool operator!()const { return std::abs(mod().v) < epsilon; }
+ bool operator!()const { return std::abs(mod().v) < ANGLE_EPSILON; }
private:
static value_type rot_floor(value_type x)
{ return static_cast<value_type>(std::floor(x/(PI*2))*PI*2); }
private:
static value_type rot_floor(value_type x)
{ return static_cast<value_type>(std::floor(x/(PI*2))*PI*2); }
- static const value_type epsilon = 1.0e-6;
-
public:
/*
** Conversion Classes
public:
/*
** Conversion Classes