From 86f0cd8e63d3106739440b3db7b87d0e9e2f4613 Mon Sep 17 00:00:00 2001 From: Brian-E Date: Sun, 17 Sep 2023 12:42:50 +0100 Subject: [PATCH] put back parenthesis --- src/raymath.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/raymath.h b/src/raymath.h index 4b377925f..66853a8fd 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -282,7 +282,7 @@ RMAPI float Vector2Length(Vector2 v) // Calculate vector square length RMAPI float Vector2LengthSqr(Vector2 v) { - float result = v.x*v.x + v.y*v.y; + float result = (v.x*v.x) + (v.y*v.y); return result; } @@ -290,7 +290,7 @@ RMAPI float Vector2LengthSqr(Vector2 v) // Calculate two vectors dot product RMAPI float Vector2DotProduct(Vector2 v1, Vector2 v2) { - float result = v1.x*v2.x + v1.y*v2.y; + float result = (v1.x*v2.x + v1.y*v2.y); return result; } @@ -306,7 +306,7 @@ RMAPI float Vector2Distance(Vector2 v1, Vector2 v2) // Calculate square distance between two vectors RMAPI float Vector2DistanceSqr(Vector2 v1, Vector2 v2) { - float result = (v1.x - v2.x)*(v1.x - v2.x) + (v1.y - v2.y)*(v1.y - v2.y); + float result = ((v1.x - v2.x)*(v1.x - v2.x) + (v1.y - v2.y)*(v1.y - v2.y)); return result; }