using Hawkeye.VisionBuilder.Workflow.Datatypes.Elements.Rectangle;


namespace Hawkeye.VisionBuilder.Workflow.Datatypes.Elements.FixedRectangle;

public class FixedRectangleAnchorNode:INode
{
    private readonly FixedRectangleElement _owner;

    public FixedRectangleAnchorNode(FixedRectangleElement owner)
    {
        _owner = owner;
    }

    public void SetPosition(Vector2 position)
    {
        
        _owner.Location=position-_owner.Offset;
        
    }
}