From 6ed655f8c31f2f9aa970535dbc553a637366deef Mon Sep 17 00:00:00 2001 From: intolerantape Date: Thu, 2 Dec 2021 04:57:07 -0800 Subject: [PATCH] Implementated Math::SinCos() overload taking doubles as parameters. --- Source/Engine/Core/Math/Math.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Engine/Core/Math/Math.cpp b/Source/Engine/Core/Math/Math.cpp index d0642d7ca..0e60a3248 100644 --- a/Source/Engine/Core/Math/Math.cpp +++ b/Source/Engine/Core/Math/Math.cpp @@ -1,6 +1,7 @@ // Copyright (c) 2012-2021 Wojciech Figat. All rights reserved. #include "Math.h" +#include "Mathd.h" #include "Vector3.h" void Math::SinCos(float angle, float& sine, float& cosine) @@ -9,6 +10,12 @@ void Math::SinCos(float angle, float& sine, float& cosine) cosine = Math::Cos(angle); } +void Math::SinCos(double angle, double& sine, double& cosine) +{ + sine = Math::Sin(angle); + cosine = Math::Cos(angle); +} + uint32 Math::FloorLog2(uint32 value) { // References: