From 398a6b62ea96fd61738d3e6750c48b29df056de4 Mon Sep 17 00:00:00 2001 From: Eric J <49599659+ProfJski@users.noreply.github.com> Date: Mon, 12 Jul 2021 00:28:55 -0400 Subject: [PATCH] Fixed Line 644 with explicit cast See previous pull request for all the details about this function --- src/raymath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raymath.h b/src/raymath.h index 9e0581a21..96d1e8f70 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -641,7 +641,7 @@ RMDEF Vector3 Vector3Slerp(Vector3 v1, Vector3 v2, float t, float iradius, float if (Vector3LengthSqr(Vector3Subtract(incept,midpoint))<0.1) { //If our midpoint and axis intercept are very close together, displace the midpoint slightly so that normalization of F does not result in divide-by-zero or G=0 because F={1,0,0} midpoint=Vector3Add(v1,Vector3Scale(L,0.49)); - midpoint=Vector3Add(midpoint,Vector3CrossProduct(midpoint,{0.2,0.0,0.0})); + midpoint=Vector3Add(midpoint,Vector3CrossProduct(midpoint,(Vector3){0.2,0.0,0.0})); } F=Vector3Normalize(Vector3Subtract(incept,midpoint)); // First orthogonal vector G=Vector3Normalize(Vector3CrossProduct(L,F)); // Second orthogonal vector