Added Files
This commit is contained in:
17
PepLib.Core/AngleConverter.cs
Normal file
17
PepLib.Core/AngleConverter.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace PepLib
|
||||
{
|
||||
public static class AngleConverter
|
||||
{
|
||||
public static double ToDegrees(double radians)
|
||||
{
|
||||
return 180.0 / Math.PI * radians;
|
||||
}
|
||||
|
||||
public static double ToRadians(double degrees)
|
||||
{
|
||||
return Math.PI / 180.0 * degrees;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user