Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 720ce78d authored by Michael KRISPER's avatar Michael KRISPER
Browse files

faster IsPositive Method

parent 5aa81e0e
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@ namespace TUGraz.VectoCommon.Utils
/// <returns></returns>
public static bool IsPositive(this double self, double tolerance = Tolerance)
{
return self.IsGreaterOrEqual(0.0, tolerance);
return self >= -tolerance;
}
/// <summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment