From 7469c9ab0cc234d627046f59a70842acf718c84c Mon Sep 17 00:00:00 2001 From: Syntriax Date: Sun, 19 Oct 2025 00:15:09 +0300 Subject: [PATCH] docs: Vector3D.FromAxisAngle parameters updated --- Engine.Core/Primitives/Quaternion.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); }