summaryrefslogtreecommitdiffhomepage
path: root/src/rshapes.c
diff options
context:
space:
mode:
authorRay <[email protected]>2023-10-26 23:56:03 +0200
committerRay <[email protected]>2023-10-26 23:56:03 +0200
commite4547eb4225189eadd2c6f4e87b5e32c4a285b88 (patch)
tree8075dbe88c993b29e2d16a20bc57d3db7795bd91 /src/rshapes.c
parent1cef62cf052432755e9955aa8798eca339dcf1d3 (diff)
downloadraylib-e4547eb4225189eadd2c6f4e87b5e32c4a285b88.tar.gz
raylib-e4547eb4225189eadd2c6f4e87b5e32c4a285b88.zip
Remove trail spaces
Diffstat (limited to 'src/rshapes.c')
-rw-r--r--src/rshapes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rshapes.c b/src/rshapes.c
index de64f159..e8e533d3 100644
--- a/src/rshapes.c
+++ b/src/rshapes.c
@@ -190,7 +190,7 @@ void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color)
if ((length > 0) && (thick > 0))
{
float scale = thick/(2*length);
-
+
Vector2 radius = { -scale*delta.y, scale*delta.x };
Vector2 strip[4] = {
{ startPos.x - radius.x, startPos.y - radius.y },
@@ -255,7 +255,7 @@ void DrawLineBezierQuad(Vector2 startPos, Vector2 endPos, Vector2 controlPos, fl
for (int i = 1; i <= SPLINE_LINE_DIVISIONS; i++)
{
t = step*i;
-
+
float a = powf(1.0f - t, 2);
float b = 2.0f*(1.0f - t)*t;
float c = powf(t, 2);
@@ -301,7 +301,7 @@ void DrawLineBezierCubic(Vector2 startPos, Vector2 endPos, Vector2 startControlP
for (int i = 1; i <= SPLINE_LINE_DIVISIONS; i++)
{
t = step*i;
-
+
float a = powf(1.0f - t, 3);
float b = 3.0f*powf(1.0f - t, 2)*t;
float c = 3.0f*(1.0f - t)*powf(t, 2);