initial commit
This commit is contained in:
18
src/TraceCad.Core/Model/CircleEntity.cs
Normal file
18
src/TraceCad.Core/Model/CircleEntity.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using TraceCad.Core.Geometry;
|
||||
|
||||
namespace TraceCad.Core.Model;
|
||||
|
||||
public sealed record CircleEntity(
|
||||
Guid Id,
|
||||
string Layer,
|
||||
Point2 Center,
|
||||
double Radius) : Entity(Id, Layer)
|
||||
{
|
||||
public override IEnumerable<Point2> SnapPoints
|
||||
{
|
||||
get
|
||||
{
|
||||
yield return Center;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user