Example #1
0
    public CenteredRectangle(Vector2 pos, Vector2 size) : base(pos)
    {
        this.size       = size;
        literalPosition = PaperUtils.CenterRectToPoint(pos, size);

        Center();
    }
Example #2
0
 public override void Center()
 {
     literalPosition = PaperUtils.CenterRectToPoint(position, size);
     rectangle       = new Rectangle(literalPosition.X, literalPosition.Y, size.X, size.Y);
 }