diff --git a/LeoCorpLibrary/Maths.cs b/LeoCorpLibrary/Maths.cs index f167dae..243f52d 100644 --- a/LeoCorpLibrary/Maths.cs +++ b/LeoCorpLibrary/Maths.cs @@ -109,6 +109,8 @@ public static double DegreesToRadians(double degrees) /// A value. public static bool IsInteger(double number) => (double)(int)number == number; + public static double GetOpposite(double n) => 0 - n; + /// /// Class that coontains methods for circles. ///