Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/GeneralMathRoutines.cs
===================================================================
diff -u -r4000 -r4052
--- DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/GeneralMathRoutines.cs (.../GeneralMathRoutines.cs) (revision 4000)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/Standard/GeneralMathRoutines.cs (.../GeneralMathRoutines.cs) (revision 4052)
@@ -21,35 +21,34 @@
using System;
-namespace Deltares.DamEngine.Data.Standard
+namespace Deltares.DamEngine.Data.Standard;
+
+///
+/// Static class GeneralMathRoutines
+///
+public static class GeneralMathRoutines
{
///
- /// Static class GeneralMathRoutines
+ /// Perform linear interpolation between two values.
///
- public static class GeneralMathRoutines
+ /// First value.
+ /// Second value.
+ /// The fraction in the range [0.0, 1.0].
+ /// Returns if is 0.0,
+ /// returns when it's 1.0, otherwise returns the linearly
+ /// interpolated value of the two given values.
+ public static double LinearInterpolate(double v0, double v1, double fraction)
{
- ///
- /// Perform linear interpolation between two values.
- ///
- /// First value.
- /// Second value.
- /// The fraction in the range [0.0, 1.0].
- /// Returns if is 0.0,
- /// returns when it's 1.0, otherwise returns the linearly
- /// interpolated value of the two given values.
- public static double LinearInterpolate(double v0, double v1, double fraction)
- {
- return (1.0 - fraction) * v0 + fraction * v1;
- }
+ 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;
- }
+ ///
+ /// 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