public class IBounds
extends java.lang.Object
Constructor and Description |
---|
IBounds() |
IBounds(java.util.ArrayList<IObject> objects) |
IBounds(double x,
double y,
double z,
double xwidth,
double yheight,
double zdepth) |
IBounds(IBounds b) |
IBounds(IObject obj) |
IBounds(IObject[] objects) |
IBounds(IVec p) |
IBounds(IVec corner,
double xwidth,
double yheight,
double zdepth) |
IBounds(IVec min,
IVec max) |
Modifier and Type | Method and Description |
---|---|
IVec |
center() |
void |
compare(IObject e) |
void |
compare(IVec p) |
IBounds |
cp() |
double |
depth() |
IVec |
getCenter() |
IVec |
getMax() |
IVec |
getMin() |
IVec |
getSize() |
double |
height() |
void |
init() |
void |
init(IVec p) |
boolean |
isCloserThan(IBounds b,
double thresholdDist) |
IVec |
max() |
double |
maxX() |
double |
maxY() |
double |
maxZ() |
IVec |
min() |
double |
minX() |
double |
minY() |
double |
minZ() |
void |
setObject(IObject object) |
void |
setObjects(java.util.ArrayList<IObject> objects) |
void |
setObjects(IServer server)
Calculates bounding box of all the visible objects in IServer
|
IVec |
size() |
java.lang.String |
toString() |
double |
width() |
public IBounds()
public IBounds(IVec p)
public IBounds(IObject obj)
public IBounds(IVec corner, double xwidth, double yheight, double zdepth)
public IBounds(double x, double y, double z, double xwidth, double yheight, double zdepth)
public IBounds(IObject[] objects)
public IBounds(java.util.ArrayList<IObject> objects)
public IBounds(IBounds b)
public IBounds cp()
public IVec min()
public IVec getMin()
public IVec max()
public IVec getMax()
public double minX()
public double minY()
public double minZ()
public double maxX()
public double maxY()
public double maxZ()
public double width()
public double height()
public double depth()
public IVec size()
public IVec getSize()
public IVec center()
public IVec getCenter()
public void init(IVec p)
public void init()
public void compare(IVec p)
public void compare(IObject e)
public void setObjects(IServer server)
public void setObject(IObject object)
public void setObjects(java.util.ArrayList<IObject> objects)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isCloserThan(IBounds b, double thresholdDist)