Class Polygon2D.Float

  • All Implemented Interfaces:
    Shape
    Enclosing class:
    Polygon2D

    public static class Polygon2D.Float
    extends Polygon2D
    The concrete Polygon class that stores coordinates internally as floats.
    • Constructor Detail

      • Float

        public Float​(int size)
        Create a new polygon with space for the given number of vertices.
      • Float

        public Float​(float[] coords)
        Create a new polygon with space for the given number of vertices.
      • Float

        public Float()
        Create a new polygon with no vertices.
      • Float

        public Float​(float x,
                     float y)
        Create a new polygon with a single start point