Add circle shape calculation for shear
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using StructureHelperCommon.Infrastructures.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Models.Shapes
|
||||
{
|
||||
public class RectangleShapeCloneStrategy : ICloneStrategy<IRectangleShape>
|
||||
{
|
||||
IUpdateStrategy<IRectangleShape> updateStrategy;
|
||||
public IRectangleShape GetClone(IRectangleShape sourceObject)
|
||||
{
|
||||
RectangleShape clone = new RectangleShape(Guid.NewGuid());
|
||||
updateStrategy ??= new RectangleShapeUpdateStrategy();
|
||||
updateStrategy.Update(clone, sourceObject);
|
||||
return clone;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user