Math.h | Math.h | |||
---|---|---|---|---|
skipping to change at line 15 | skipping to change at line 15 | |||
namespace ParabolicRamp { | namespace ParabolicRamp { | |||
typedef OpenRAVE::dReal Real; | typedef OpenRAVE::dReal Real; | |||
typedef std::vector<Real> Vector; | typedef std::vector<Real> Vector; | |||
#define PARABOLICLOG RAVELOG_VERBOSE | #define PARABOLICLOG RAVELOG_VERBOSE | |||
#define PARABOLICWARN RAVELOG_DEBUG | #define PARABOLICWARN RAVELOG_DEBUG | |||
#define PARABOLIC_ASSERT BOOST_ASSERT | #define PARABOLIC_ASSERT BOOST_ASSERT | |||
//tolerance for time | ||||
const static Real EpsilonT = 1e-8; | ||||
//tolerance for position | ||||
const static Real EpsilonX = 1e-7; | ||||
//tolerance for velocity | ||||
const static Real EpsilonV = 1e-7; | ||||
//tolerance for acceleration | ||||
const static Real EpsilonA = 1e-6; | ||||
//can replace this with your favorite representation/tests of infinity | //can replace this with your favorite representation/tests of infinity | |||
const static Real Inf = 1e300; | const static Real Inf = 1e300; | |||
inline bool IsInf(Real x) { | inline bool IsInf(Real x) { | |||
return x==Inf; | return x==Inf; | |||
} | } | |||
inline bool IsFinite(Real x) { | inline bool IsFinite(Real x) { | |||
return OpenRAVE::RaveFabs(x)<Inf; | return OpenRAVE::RaveFabs(x)<Inf; | |||
} | } | |||
inline Real Sqr(Real x) { | inline Real Sqr(Real x) { | |||
return x*x; | return x*x; | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 10 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |