Class Rectangle

java.lang.Object
org.openpatch.scratch.Shape
org.openpatch.scratch.Rectangle

public class Rectangle extends Shape
A rectangle along the axes.
  • Constructor Details

    • Rectangle

      public Rectangle(double x, double y, double width, double height)
      Parameters:
      x - the smallest x
      y - the smallest y
      width - the width
      height - the height