Class Diamond

All Implemented Interfaces:
Shape

public class Diamond extends Polygon
  • Constructor Details

    • Diamond

      public Diamond()
  • Method Details

    • getPoints

      protected Point2D[] getPoints(double x, double y, double width, double height)
      Specified by:
      getPoints in class Polygon