implement
This commit is contained in:
13
dotnet/AipsCore/Domain/Models/Shape/Shape.Move.cs
Normal file
13
dotnet/AipsCore/Domain/Models/Shape/Shape.Move.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using AipsCore.Domain.Models.Shape.ValueObjects;
|
||||
|
||||
namespace AipsCore.Domain.Models.Shape;
|
||||
|
||||
public partial class Shape
|
||||
{
|
||||
public virtual void Move(int newPositionX, int newPositionY)
|
||||
{
|
||||
var newPosition = new Position(newPositionX, newPositionY);
|
||||
|
||||
this.Position = newPosition;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user