Fix conversion to degrees in Vector3.Angle
This commit is contained in:
@@ -1221,7 +1221,7 @@ namespace FlaxEngine
|
||||
float dot = Mathf.Clamp(Dot(from.Normalized, to.Normalized), -1F, 1F);
|
||||
if (Mathf.Abs(dot) > (1F - Mathf.Epsilon))
|
||||
return dot > 0F ? 0F : 180F;
|
||||
return Mathf.Acos(dot) * Mathf.DegreesToRadians;
|
||||
return Mathf.Acos(dot) * Mathf.RadiansToDegrees;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user