|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatavism.server.math.Geometry
public class Geometry
Class used in the Quad Tree representing a 2 dimensional area works with java bean xml serialization
Field Summary | |
---|---|
static float |
GEO_MAX_X
|
static float |
GEO_MAX_Z
|
static float |
GEO_MIN_X
|
static float |
GEO_MIN_Z
|
Constructor Summary | |
---|---|
Geometry()
|
|
Geometry(float minX,
float maxX,
float minZ,
float maxZ)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static float GEO_MIN_X
public static float GEO_MAX_X
public static float GEO_MIN_Z
public static float GEO_MAX_Z
Constructor Detail |
---|
public Geometry()
public Geometry(float minX, float maxX, float minZ, float maxZ)
Method Detail |
---|
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()
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |