1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 06:44:10 +02:00

RadiansToDegrees/DegreesToRadians

This commit is contained in:
Brian Fiete 2023-02-23 05:57:54 -05:00
parent b692c7c404
commit d98028d880

View file

@ -140,6 +140,11 @@ namespace System
public static extern float Round(float f);
public static extern double Round(double a);
public static float RadiansToDegrees(float rad) => rad * (180.f / PI_f);
public static double RadiansToDegrees(double rad) => rad * (180.0 / PI_d);
public static float DegreesToRadians(float deg) => deg * (PI_f / 180.f);
public static double DegreesToRadians(double deg) => deg * (PI_d / 180.0);
public static float Round(float value, int32 digits)
{
if ((digits < 0) || (digits > cMaxDoubleRoundingDigits))