diff --git a/Source/Engine/Core/Math/Math.h b/Source/Engine/Core/Math/Math.h index a3c05fce4..a7d806dfe 100644 --- a/Source/Engine/Core/Math/Math.h +++ b/Source/Engine/Core/Math/Math.h @@ -901,7 +901,7 @@ namespace Math return length - Abs(Repeat(t, length * 2.0f) - length); } - // Rotates position about the given axis by the given angle, in radians, and returns the offset to position + // Rotates position about the input axis by the given angle (in radians), and returns the delta to position Vector3 FLAXENGINE_API RotateAboutAxis(const Vector3& normalizedRotationAxis, float angle, const Vector3& positionOnAxis, const Vector3& position); Vector3 FLAXENGINE_API ExtractLargestComponent(const Vector3& v); diff --git a/Source/Shaders/Math.hlsl b/Source/Shaders/Math.hlsl index 67ddc1887..9ddef6c02 100644 --- a/Source/Shaders/Math.hlsl +++ b/Source/Shaders/Math.hlsl @@ -241,7 +241,7 @@ float4 FindQuatBetween(float3 from, float3 to) return normalize(result); } -// Rotates Position about the given axis by the given angle, in radians, and returns the offset to position +// Rotates position about the input axis by the given angle (in radians), and returns the delta to position float3 RotateAboutAxis(float4 normalizedRotationAxisAndAngle, float3 positionOnAxis, float3 position) { float3 pointOnAxis = positionOnAxis + normalizedRotationAxisAndAngle.xyz * dot(normalizedRotationAxisAndAngle.xyz, position - positionOnAxis);