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.
(Since version 2.8.0) use productIterator instead
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