Package gov.usgs.earthquake.qdm
Class Region
java.lang.Object
gov.usgs.earthquake.qdm.Region
A polygon without holes.
Points are assumed to use x=longitude, y=latitude. A "default" region has no
boundary points, and contains all points.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
netid
String for net id -
regionid
String for region id -
points
Arraylist of points
-
-
Constructor Details
-
Region
Region constructor- Parameters:
netid
- stringregionid
- string
-
-
Method Details
-
inpoly
Method to determine if this lat-lon in this region? In or out algorithm taken from an algorithm by Edwards and Coleman of Oak Ridge Lab, version for BNL by Benkovitz translated to C by Andy Michael and into Java by Alan Jones.- Parameters:
xy
- point- Returns:
- bool if point is in region
-