mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Add System.Math.Cbrt
This commit is contained in:
parent
d37c515644
commit
bd891171f7
2 changed files with 14 additions and 0 deletions
|
@ -37,6 +37,8 @@ namespace bf
|
|||
BFRT_EXPORT static double Round(double a);
|
||||
BFRT_EXPORT static float Sqrt(float f);
|
||||
BFRT_EXPORT static double Sqrt(double d);
|
||||
BFRT_EXPORT static float Cbrt(float f);
|
||||
BFRT_EXPORT static double Cbrt(double d);
|
||||
BFRT_EXPORT static float Log(float d);
|
||||
BFRT_EXPORT static double Log(double d);
|
||||
BFRT_EXPORT static float Log10(float d);
|
||||
|
@ -193,6 +195,16 @@ double Math::Sqrt(double d)
|
|||
return sqrt(d);
|
||||
}
|
||||
|
||||
float Math::Cbrt(float f)
|
||||
{
|
||||
return cbrtf(f);
|
||||
}
|
||||
|
||||
double Math::Cbrt(double d)
|
||||
{
|
||||
return cbrt(d);
|
||||
}
|
||||
|
||||
float Math::Log(float d)
|
||||
{
|
||||
return logf(d);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue