From 609d4122178cafae4aa4844cc2f9be3aad51566a Mon Sep 17 00:00:00 2001 From: Dennis Mannhart Date: Tue, 24 Jul 2018 08:40:57 +0200 Subject: [PATCH] BezierQuad: use template type Tp for default --- src/lib/bezier/BezierQuad.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/bezier/BezierQuad.hpp b/src/lib/bezier/BezierQuad.hpp index f46cb6d660..58a46f65f5 100644 --- a/src/lib/bezier/BezierQuad.hpp +++ b/src/lib/bezier/BezierQuad.hpp @@ -102,7 +102,7 @@ public: * Set new bezier points and duration */ void setBezier(const Vector3_t &pt0, const Vector3_t &ctrl, const Vector3_t &pt1, - Tp duration = 1.0f); + Tp duration = (Tp)1); /* * Set duration @@ -165,7 +165,7 @@ public: * the desired velocity vectors at the end points. */ void setBezFromVel(const Vector3_t &ctrl, const Vector3_t &vel0, const Vector3_t &vel1, - const Tp duration = 1.0f); + const Tp duration = (Tp)1); /* * Return the arc length of a bezier spline @@ -183,8 +183,8 @@ private: Tp _duration = (Tp)1; /**< Total time to travle along spline */ Tp _cached_arc_length = (Tp)0; /**< The saved arc length of the spline */ - Tp _cached_resolution = (Tp)( - -1); /**< The resolution used to compute the arc length. Negative number means that cache is not up to date. */ + Tp _cached_resolution = (Tp)(-1); /**< The resolution used to compute the arc length. + Negative number means that cache is not up to date. */ /* * Golden section search