20 #ifndef WORLD_BUILDER_OBJECTS_BEZIER_CURVE_H 21 #define WORLD_BUILDER_OBJECTS_BEZIER_CURVE_H 54 BezierCurve(
const std::vector<
Point<2> > &p,
const std::vector<double> &angle_constraints = {});
Point< 2 > operator()(const size_t i, const double x) const
Class for circle line/spline, including interpolation on it.
BezierCurve()=default
Construct a new Bezier Curve object.
std::vector< Point< 2 > > points
std::vector< std::array< Point< 2 >, 2 > > control_points
std::vector< double > angles
ClosestPointOnCurve closest_point_on_curve_segment(const Point< 2 > &p, const bool verbose=false) const
Finds the closest point on the curve. If the the closest point doesn't fall on the segment...
std::vector< double > lengths