Class RectangleMapObject


  • public class RectangleMapObject
    extends MapObject
    • Constructor Detail

      • RectangleMapObject

        public RectangleMapObject()
        Creates a rectangle object which lower left corner is at (0, 0) with width=1 and height=1
      • RectangleMapObject

        public RectangleMapObject​(float x,
                                  float y,
                                  float width,
                                  float height)
        Creates a Rectangle object with the given X and Y coordinates along with a given width and height.
        Parameters:
        x - X coordinate
        y - Y coordinate
        width - Width of the Rectangle to be created.
        height - Height of the Rectangle to be created.
    • Method Detail

      • getRectangle

        public Rectangle getRectangle()
        Returns:
        rectangle shape