Implementated Math::SinCos() overload taking doubles as parameters.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||||
|
|
||||||
#include "Math.h"
|
#include "Math.h"
|
||||||
|
#include "Mathd.h"
|
||||||
#include "Vector3.h"
|
#include "Vector3.h"
|
||||||
|
|
||||||
void Math::SinCos(float angle, float& sine, float& cosine)
|
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);
|
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)
|
uint32 Math::FloorLog2(uint32 value)
|
||||||
{
|
{
|
||||||
// References:
|
// References:
|
||||||
|
|||||||
Reference in New Issue
Block a user