Move math utilities to OpenNest.Math namespace
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
15
OpenNest.Core/Math/EvenOdd.cs
Normal file
15
OpenNest.Core/Math/EvenOdd.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace OpenNest.Math
|
||||
{
|
||||
public static class EvenOdd
|
||||
{
|
||||
public static bool IsEven(this int i)
|
||||
{
|
||||
return (i % 2) == 0;
|
||||
}
|
||||
|
||||
public static bool IsOdd(this int i)
|
||||
{
|
||||
return (i % 2) == 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user