Class Polygon
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.Polygon
-
public class Polygon extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
identifier_link
float[]
polygonX
float[]
polygonY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.ArrayList<Polygon>
getPolygonArraylistFromString(java.lang.String source)
float
getPolygonX(int pos)
float
getPolygonXCentroid()
float
getPolygonY(int pos)
float
getPolygonYCentroid()
boolean
isInPolygon(float testx, float testy)
boolean
isInPolygon(Weather.WeatherLocation weatherLocation)
-
-
-
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)
-
isInPolygon
public boolean isInPolygon(Weather.WeatherLocation weatherLocation)
-
getPolygonArraylistFromString
public static java.util.ArrayList<Polygon> getPolygonArraylistFromString(java.lang.String source)
-
-