Add circle shape calculation for shear

This commit is contained in:
RedikultsevEvg
2025-07-20 21:45:07 +05:00
parent ddf075bffd
commit 6e8f4bcc58
40 changed files with 488 additions and 99 deletions

View File

@@ -0,0 +1,17 @@
using StructureHelperCommon.Infrastructures.Interfaces;
using System;
namespace StructureHelperCommon.Models.Shapes
{
internal class CircleShapeCloneStrategy : ICloneStrategy<ICircleShape>
{
IUpdateStrategy<ICircleShape> updateStrategy;
public ICircleShape GetClone(ICircleShape sourceObject)
{
updateStrategy ??= new CircleShapeUpdateStrategy();
CircleShape clone = new CircleShape(Guid.NewGuid());
updateStrategy.Update(clone, sourceObject);
return clone;
}
}
}