コード例 #1
0
 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;
 }
コード例 #2
0
 public Rect2d(Position2d position, Size2d size, Anchor2d anchor) : this(position, size, new Origin2d(anchor))
 {
 }
コード例 #3
0
 public Rect2d(Position2d position, Size2d size) : this(position, size, DefaultOrigin)
 {
 }