Rectangle


The class Rectangle is declared in C# as follows.

    public struct Rectangle
    {
        public double X;
        public double Y;
        public double Width;
        public double Height;

        public Rectangle(double xSet,
                         double ySet,
                         double widthSet,
                         double heightSet)
        {
            X = xSet;
            Y = ySet;
            Width = widthSet;
            Height = heightSet;
        }
    }