scalation.scala2d
The Hexagon class enhances the Path2D.Double class (from the java.awt.geom package) by adding a constructor for building a hexagon given its vertices.
the six corner points of the hexagon
Construct a equilateral Hexagon.
the top left point for the hexagon (min x and y coordinates)
the length of each side in the hexagon
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 Hexagon class enhances the Path2D.Double class (from the java.awt.geom package) by adding a constructor for building a hexagon given its vertices.
the six corner points of the hexagon