floating point comparsion
https://github.com/acfr/comma/blob/master/math/compare.h
template inline bool equal( float lhs, S rhs ) { return std::fabs( lhs - rhs ) ::epsilon(); }
template inline bool less( float lhs,
转载
2015-06-29 15:47:03 ·
404 阅读 ·
0 评论