diff --git a/inc/Math.hpp b/inc/Math.hpp index 032c4df..4c123b7 100644 --- a/inc/Math.hpp +++ b/inc/Math.hpp @@ -1,4 +1,4 @@ #include "raylib.h" Color ColorLerp(Color c1, Color c2, float amount); -Vector2 calculateVector(float rotation, float offSet, float len); \ No newline at end of file +Vector2 CalculateVector(float rotation, float offSet, float len); diff --git a/src/App.cpp b/src/App.cpp index 5498ce0..998ef5f 100644 --- a/src/App.cpp +++ b/src/App.cpp @@ -40,7 +40,7 @@ void App::update() float dist = mousePosition.x - mouseStart.x; float l = dist / screenWidth; rotation = Lerp(45.0f, -45.0f, (l + 1) / 2); - Vector2 newCenter = calculateVector(rotation, ofset, len); + Vector2 newCenter = CalculateVector(rotation, ofset, len); destA.x = newCenter.x + mousePosition.x; destA.y = newCenter.y + mousePosition.y; } diff --git a/src/Math.cpp b/src/Math.cpp index 9c2bd63..92b9c52 100644 --- a/src/Math.cpp +++ b/src/Math.cpp @@ -12,7 +12,7 @@ Color ColorLerp(Color c1, Color c2, float amount) return ret; } -Vector2 calculateVector(float rotation, float offSet, float len) +Vector2 CalculateVector(float rotation, float offSet, float len) { float angle = ((rotation)*PI) / 180.0f; angle += offSet;