Add circle shape calculation for shear
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user