public Rect2d(Position2d position, Size2d size, Origin2d origin) { this.X = position.X; this.Y = position.Y; this.Width = size.Width; this.Height = size.Height; this.Origin = origin; }
public Rect2d(Position2d position, Size2d size, Anchor2d anchor) : this(position, size, new Origin2d(anchor)) { }
public Rect2d(Position2d position, Size2d size) : this(position, size, DefaultOrigin) { }