calculateVector to CamelCase
This commit is contained in:
parent
4a57aa1520
commit
c5b0911ea5
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user