From 98a4fa2b0d79298fa29b048a3ba15c3bf5aed8cd Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Fri, 16 Dec 2022 17:17:31 +0000 Subject: Added clang format (#1239) * clang-format stuff and format files --- src/helpers/BezierCurve.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/helpers/BezierCurve.hpp') diff --git a/src/helpers/BezierCurve.hpp b/src/helpers/BezierCurve.hpp index da01b688..81cf74b6 100644 --- a/src/helpers/BezierCurve.hpp +++ b/src/helpers/BezierCurve.hpp @@ -3,25 +3,25 @@ #include "../defines.hpp" #include -constexpr int BAKEDPOINTS = 200; +constexpr int BAKEDPOINTS = 200; constexpr float INVBAKEDPOINTS = 1.f / BAKEDPOINTS; // an implementation of a cubic bezier curve // might do better later // TODO: n-point curves class CBezierCurve { -public: + public: // sets up the bezier curve. // this EXCLUDES the 0,0 and 1,1 points, - void setup(std::vector* points); + void setup(std::vector* points); - float getYForT(float t); - float getXForT(float t); - float getYForPoint(float x); + float getYForT(float t); + float getXForT(float t); + float getYForPoint(float x); -private: + private: // this INCLUDES the 0,0 and 1,1 points. - std::deque m_dPoints; + std::deque m_dPoints; - std::array m_aPointsBaked; + std::array m_aPointsBaked; }; \ No newline at end of file -- cgit v1.2.3