diff options
| author | Ray <[email protected]> | 2023-02-05 16:30:23 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-02-05 16:30:23 +0100 |
| commit | 1fea26647214308774c4630d10883f42d608fa9d (patch) | |
| tree | e6d81a0288a28bc3acd713c3e4596a2e0811a41c /src/rshapes.c | |
| parent | c91190fc6e9355f58c15a0a17990ca9b450aaf5d (diff) | |
| download | raylib-1fea26647214308774c4630d10883f42d608fa9d.tar.gz raylib-1fea26647214308774c4630d10883f42d608fa9d.zip | |
Clean trailing spaces
Diffstat (limited to 'src/rshapes.c')
| -rw-r--r-- | src/rshapes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rshapes.c b/src/rshapes.c index 86e014e2..4c507245 100644 --- a/src/rshapes.c +++ b/src/rshapes.c @@ -300,7 +300,7 @@ void DrawLineBezierCubic(Vector2 startPos, Vector2 endPos, Vector2 startControlP float dy = current.y-previous.y; float dx = current.x-previous.x; float size = 0.5f*thick/sqrtf(dx*dx+dy*dy); - + if (i==1) { points[0].x = previous.x+dy*size; @@ -1639,19 +1639,19 @@ bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 bool CheckCollisionPointPoly(Vector2 point, Vector2 *points, int pointCount) { bool collision = false; - + if (pointCount > 2) { for (int i = 0; i < pointCount - 1; i++) { Vector2 vc = points[i]; Vector2 vn = points[i + 1]; - + if ((((vc.y >= point.y) && (vn.y < point.y)) || ((vc.y < point.y) && (vn.y >= point.y))) && (point.x < ((vn.x - vc.x)*(point.y - vc.y)/(vn.y - vc.y) + vc.x))) collision = !collision; } } - + return collision; } |
