29 constexpr double tol = 1e-9;
31 BOOST_CHECK_SMALL( aActual.x - aExpected.x, tol );
32 BOOST_CHECK_SMALL( aActual.y - aExpected.y, tol );
38 const BEZIER<double> curve( { 0.0, 0.0 }, { 30.0, 90.0 }, { 70.0, -40.0 },
54 const BEZIER<double> curve( { 0.0, 0.0 }, { 30.0, 90.0 }, { 70.0, -40.0 },
56 const double t0 = 0.2;
57 const double t1 = 0.8;
Generic cubic Bezier representation.
VECTOR2< NumericType > Start
constexpr BEZIER SubCurve(double aT0, double aT1) const
Extract a sub-curve from aT0 to aT1 using de Casteljau subdivision.
VECTOR2< NumericType > End
constexpr VECTOR2< NumericType > PointAt(double aT) const
Evaluate the Bezier curve at a given t value.
BOOST_AUTO_TEST_CASE(SplitPreservesEndpoints)
static void checkVecClose(const VECTOR2D &aActual, const VECTOR2D &aExpected)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
VECTOR2< double > VECTOR2D