Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/GeneralMathRoutines.cs =================================================================== diff -u -r1974 -r3024 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/GeneralMathRoutines.cs (.../GeneralMathRoutines.cs) (revision 1974) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/GeneralMathRoutines.cs (.../GeneralMathRoutines.cs) (revision 3024) @@ -19,6 +19,8 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; + namespace Deltares.DamEngine.Data.Standard { /// @@ -38,6 +40,16 @@ public static double LinearInterpolate(double v0, double v1, double fraction) { return (1.0 - fraction)*v0 + fraction*v1; - } + } + + /// + /// Converts an Angle from radians to degrees + /// + /// + /// angle in degrees + public static double RadianToDegree(double angle) + { + return 180.0 * angle / Math.PI; + } } } \ No newline at end of file