public class Boundary
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected Geometry |
boundingBox |
Constructor and Description |
---|
Boundary() |
Boundary(java.util.List<Point> points) |
Boundary(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addPoint(Point p) |
java.lang.Object |
clone() |
boolean |
contains(Point p)
returns if the point is contained within this 2d boundary
pick a point outside of the boundary, create a line segment from the
point in question, to the point outside the line. count how many times it
crosses line segments of the boundary. if even, its not inside the
boundary
|
Geometry |
getBoundingBox() |
static Boundary |
getMaxBoundary() |
java.lang.String |
getName() |
java.util.List<Point> |
getPoints() |
void |
setName(java.lang.String name) |
void |
setPoints(java.util.List<Point> points) |
java.lang.String |
toString() |
protected Geometry boundingBox
public Boundary()
public Boundary(java.lang.String name)
public Boundary(java.util.List<Point> points)
public void setName(java.lang.String name)
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public void setPoints(java.util.List<Point> points)
public java.util.List<Point> getPoints()
public void addPoint(Point p)
public Geometry getBoundingBox()
public boolean contains(Point p)
public static Boundary getMaxBoundary()