diff --git a/Engine.Core/Primitives/Quaternion.cs b/Engine.Core/Primitives/Quaternion.cs index 2f3c918..23e9ed7 100644 --- a/Engine.Core/Primitives/Quaternion.cs +++ b/Engine.Core/Primitives/Quaternion.cs @@ -243,9 +243,9 @@ public readonly struct Quaternion(float x, float y, float z, float w) : IEquatab /// The axis of the rotation in . /// The angle in radians. /// The rotation calculated by the given parameters. - public static Quaternion FromAxisAngle(Vector3D axis, float angle) + public static Quaternion FromAxisAngle(Vector3D axis, float angleInRadian) { - float halfAngle = angle * .5f; + float halfAngle = angleInRadian * .5f; float sinHalf = Math.Sin(halfAngle); return new Quaternion(axis.X * sinHalf, axis.Y * sinHalf, axis.Z * sinHalf, Math.Cos(halfAngle)); }