scalation.scala2d
The Pentagon class enhances the Path2D.Double class (from the java.awt.geom package) by adding a constructor for building a pentagon given its vertices.
the five corner points of the pentagon
Construct a equilateral Pentagon.
the top left point for the pentagon (min x and y coordinates)
the length of each side in the pentagon
Show the flaw by printing the error message.
the method where the error occurred
the error message
Get the topLeft coordinates of the polygons bounding box.
The Pentagon class enhances the Path2D.Double class (from the java.awt.geom package) by adding a constructor for building a pentagon given its vertices.
the five corner points of the pentagon