calculateVector to CamelCase

This commit is contained in:
Nikola Petrov 2024-06-06 17:25:20 +02:00
parent 4a57aa1520
commit c5b0911ea5
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#include "raylib.h"
Color ColorLerp(Color c1, Color c2, float amount);
Vector2 calculateVector(float rotation, float offSet, float len);
Vector2 CalculateVector(float rotation, float offSet, float len);

View File

@ -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;
}

View File

@ -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;