Skip to content
Snippets Groups Projects
Commit 6768f74e authored by JasonChmn's avatar JasonChmn
Browse files

Edit few details in doc

parent 50858cc0
No related branches found
No related tags found
No related merge requests found
Pipeline #4491 passed with warnings
......@@ -44,7 +44,7 @@ struct bezier_curve : public curve_abc<Time, Numeric, Dim, Safe, Point>
public:
/// \brief Constructor.
/// Given the first and last point of a control points set, automatically create the bezier curve.
/// Given the first and last point of a control points set, create the bezier curve.
/// \param PointsBegin : an iterator pointing to the first element of a control points container.
/// \param PointsEnd : an iterator pointing to the last element of a control points container.
///
......@@ -69,7 +69,7 @@ struct bezier_curve : public curve_abc<Time, Numeric, Dim, Safe, Point>
}
/// \brief Constructor.
/// Given the first and last point of a control points set, automatically create the bezier curve.
/// Given the first and last point of a control points set, create the bezier curve.
/// \param PointsBegin : an iterator pointing to the first element of a control point container.
/// \param PointsEnd : an iterator pointing to the last element of a control point container.
/// \param T : upper bound of curve parameter which is between \f$[0;T]\f$ (default \f$[0;1]\f$).
......@@ -97,7 +97,7 @@ struct bezier_curve : public curve_abc<Time, Numeric, Dim, Safe, Point>
/// \brief Constructor.
/// Given the first and last point of a control points set, automatically create the bezier curve.
/// Given the first and last point of a control points set, create the bezier curve.
/// \param PointsBegin : an iterator pointing to the first element of a control point container.
/// \param PointsEnd : an iterator pointing to the last element of a control point container.
/// \param T : upper bound of time which is between \f$[0;T]\f$ (default \f$[0;1]\f$).
......
......@@ -188,9 +188,6 @@ void BezierCurveTest(bool& error)
params.push_back(d);
bezier_curve_t cf4(params.begin(), params.end(), 2);
res1 = cf4(2);
ComparePoints(d, res1, errMsg + "3(1) ", error);
//testing bernstein polynomials
bezier_curve_t cf5(params.begin(), params.end(),2.);
std::string errMsg2("In test BezierCurveTest ; Bernstein polynomials do not evaluate as analytical evaluation");
......@@ -233,12 +230,12 @@ void BezierCurveTest(bool& error)
if(cf.max() != 1)
{
error = true;
std::cout << "Evaluation of exactCubic error, MaxBound should be equal to 1\n";
std::cout << "Evaluation of bezier cf error, MaxBound should be equal to 1\n";
}
if(cf.min() != 0)
{
error = true;
std::cout << "Evaluation of exactCubic error, MinBound should be equal to 1\n";
std::cout << "Evaluation of bezier cf error, MinBound should be equal to 1\n";
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment