Files
StructureHelper/StructureHelperCommon/Models/Shapes/Logics/PointShapeUpdateStrategy.cs
2023-07-16 17:21:28 +05:00

21 lines
548 B
C#

using StructureHelperCommon.Infrastructures.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StructureHelperCommon.Models.Shapes.Logics
{
/// <inheritdoc />
public class PointShapeUpdateStrategy : IUpdateStrategy<IPoint2D>
{
/// <inheritdoc />
public void Update(IPoint2D targetObject, IPoint2D sourceObject)
{
targetObject.X = sourceObject.X;
targetObject.Y = sourceObject.Y;
}
}
}