Class Polygon


  • public class Polygon
    extends java.lang.Object
    • Field Detail

      • polygonX

        public float[] polygonX
      • polygonY

        public float[] polygonY
      • identifier_link

        public java.lang.String identifier_link
    • Constructor Detail

      • Polygon

        public Polygon​(int n)
      • Polygon

        public Polygon​(java.lang.String source)
      • Polygon

        public Polygon​(float[] polygonX,
                       float[] polygonY,
                       java.lang.String identifier_link)
    • Method Detail

      • getPolygonX

        public float getPolygonX​(int pos)
      • getPolygonY

        public float getPolygonY​(int pos)
      • getPolygonXCentroid

        public float getPolygonXCentroid()
      • getPolygonYCentroid

        public float getPolygonYCentroid()
      • isInPolygon

        public boolean isInPolygon​(float testx,
                                   float testy)
      • getPolygonArraylistFromString

        public static java.util.ArrayList<Polygon> getPolygonArraylistFromString​(java.lang.String source)