summaryrefslogtreecommitdiffhomepage
path: root/src/shapes.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-04-01 20:24:33 +0200
committerraysan5 <[email protected]>2021-04-01 20:24:33 +0200
commitaed0fee2cadc64e136717c0c7b3a1e57225738dc (patch)
treed02aaf13b4f5bc18186d13a16cc977bf9cc9c663 /src/shapes.c
parentb4975619ed51a2f9ae2aa8ca1e6e4bfb716620c7 (diff)
downloadraylib-aed0fee2cadc64e136717c0c7b3a1e57225738dc.tar.gz
raylib-aed0fee2cadc64e136717c0c7b3a1e57225738dc.zip
Remove trailing spaces
Diffstat (limited to 'src/shapes.c')
-rw-r--r--src/shapes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shapes.c b/src/shapes.c
index 915e9476..7771c366 100644
--- a/src/shapes.c
+++ b/src/shapes.c
@@ -812,7 +812,7 @@ void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color co
/*
Quick sketch to make sense of all of this,
there are 9 parts to draw, also mark the 12 points we'll use
-
+
P0____________________P1
/| |\
/1| 2 |3\
@@ -1037,7 +1037,7 @@ void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, int
/*
Quick sketch to make sense of all of this,
marks the 16 + 4(corner centers P16-19) points we'll use
-
+
P0 ================== P1
// P8 P9 \\
// \\
@@ -1555,7 +1555,7 @@ bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshol
float dxl = p2.x - p1.x;
float dyl = p2.y - p1.y;
float cross = dxc*dyl - dyc*dxl;
-
+
if (fabsf(cross) < (threshold*fmaxf(fabsf(dxl), fabsf(dyl))))
{
if (fabsf(dxl) >= fabsf(dyl)) collision = (dxl > 0)? ((p1.x <= point.x) && (point.x <= p2.x)) : ((p2.x <= point.x) && (point.x <= p1.x));