| 9 | using namespace std; |
| 10 | |
| 11 | bool subPathHelper( const Path2d &p, float start, float end ) |
| 12 | { |
| 13 | float targetLength = ( end - start ) * p.calcLength(); |
| 14 | Path2d sub = p.getSubPath( p.calcNormalizedTime( start, false ), p.calcNormalizedTime( end, false ) ); |
| 15 | float subLength = sub.calcLength(); |
| 16 | return abs( targetLength - subLength ) <= (0.01f * targetLength); |
| 17 | } |
| 18 | |
| 19 | TEST_CASE("Path2d") |
| 20 | { |
no test coverage detected