public class Geometry
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static float |
GEO_MAX_X |
static float |
GEO_MAX_Z |
static float |
GEO_MIN_X |
static float |
GEO_MIN_Z |
Constructor and Description |
---|
Geometry() |
Geometry(float minX,
float maxX,
float minZ,
float maxZ) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
contains(Geometry g)
Is g entirely contained within this Geometry
|
boolean |
contains(Point pt)
Is pt within this Geometry (edge included)
|
Geometry[] |
divide()
divides this geometry into 4 equal squares(does not change this obj)
and returns the 4 element array
0 1
2 3
|
boolean |
equals(Geometry other) |
java.util.Collection<Point> |
getCorners()
returns the 4 corners for this geometry
|
float |
getMaxX() |
float |
getMaxZ() |
void |
getMaxZ(int z) |
float |
getMinX() |
float |
getMinZ() |
void |
getMinZ(int z) |
boolean |
isAdjacent(Geometry gOther) |
static Geometry |
maxGeometry() |
boolean |
overlaps(Geometry g)
Does g overlap with this Geometry
|
void |
setMaxX(int x) |
void |
setMinX(int x) |
java.lang.String |
toString() |
public static float GEO_MIN_X
public static float GEO_MAX_X
public static float GEO_MIN_Z
public static float GEO_MAX_Z
public Geometry()
public Geometry(float minX, float maxX, float minZ, float maxZ)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(Geometry other)
public float getMinX()
public float getMaxX()
public float getMinZ()
public float getMaxZ()
public void setMinX(int x)
public void setMaxX(int x)
public void getMinZ(int z)
public void getMaxZ(int z)
public boolean contains(Point pt)
public boolean contains(Geometry g)
public boolean overlaps(Geometry g)
public java.util.Collection<Point> getCorners()
public Geometry[] divide()
public boolean isAdjacent(Geometry gOther)
public static Geometry maxGeometry()