Class Rectangle

    • Constructor Detail

      • Rectangle

        public Rectangle​(Position cornerA,
                         Position cornerB)
        Create a rectangle by specifying two corners of the rectangle.
        Parameters:
        cornerA - the first corner of the rectangle
        cornerB - the second corner of the rectangle; must not be the same as cornerA