This commit is contained in:
Andrea Fontana 2021-12-09 18:39:52 +01:00 committed by GitHub
parent fcc3f1f2e0
commit ce7b6bd1c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -528,7 +528,7 @@ RMAPI float Vector3Distance(Vector3 v1, Vector3 v2)
return result;
}
// Calculate between two vectors
// Calculate angle between two vectors
RMAPI float Vector3Angle(Vector3 v1, Vector3 v2)
{
return atan2f(Vector3Length(Vector3CrossProduct(v1, v2)), Vector3DotProduct(v1, v2));