Skip to content

Commit

Permalink
- implemented arc radius constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorDArcyEvans committed Apr 13, 2023
1 parent 7b65a10 commit d6345a7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions NeoGeoSolver.NET/Constraints/ArcRadius.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using NeoGeoSolver.NET.Entities;
using NeoGeoSolver.NET.Solver;

namespace NeoGeoSolver.NET.Constraints;

public class ArcRadius : Value
{
private readonly Arc _arc;

public ArcRadius(Arc arc)
{
_arc = arc;
}

public override IEnumerable<Expression> Equations
{
get
{
yield return _arc.Radius.Expr - value.Value;
}
}
}

0 comments on commit d6345a7

Please sign in to comment.