summaryrefslogtreecommitdiffhomepage
path: root/src/raymath.h
diff options
context:
space:
mode:
authorRay <[email protected]>2023-08-10 22:47:17 +0200
committerRay <[email protected]>2023-08-10 22:47:17 +0200
commit93f59a6f5912aa07fcfc2268ce119da09dff458a (patch)
tree7de73ac8e780731a1bbd3ce318f352578e099d1f /src/raymath.h
parentf1c31bee279285ad941acc1140caeb3dca86867f (diff)
downloadraylib-93f59a6f5912aa07fcfc2268ce119da09dff458a.tar.gz
raylib-93f59a6f5912aa07fcfc2268ce119da09dff458a.zip
Review tabs and trail-spaces
Diffstat (limited to 'src/raymath.h')
-rw-r--r--src/raymath.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/raymath.h b/src/raymath.h
index 9281691f..86d2c8eb 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -315,11 +315,11 @@ RMAPI float Vector2DistanceSqr(Vector2 v1, Vector2 v2)
RMAPI float Vector2Angle(Vector2 v1, Vector2 v2)
{
float result = 0.0f;
-
+
float dot = v1.x*v2.x + v1.y*v2.y;
float det = v1.x*v2.y - v1.y*v2.x;
result = -atan2f(det, dot);
-
+
return result;
}
@@ -329,7 +329,7 @@ RMAPI float Vector2Angle(Vector2 v1, Vector2 v2)
RMAPI float Vector2LineAngle(Vector2 start, Vector2 end)
{
float result = 0.0f;
-
+
result = atan2f(end.y - start.y, end.x - start.x);
return result;