com.planet_ink.coffee_mud.core.interfaces
Class BoundedObject.BoundedCube

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.interfaces.BoundedObject.BoundedCube
All Implemented Interfaces:
java.lang.Comparable<BoundedObject.BoundedCube>
Enclosing interface:
BoundedObject

public static class BoundedObject.BoundedCube
extends java.lang.Object
implements java.lang.Comparable<BoundedObject.BoundedCube>


Field Summary
 long by
           
 long iz
           
 long lx
           
 long oz
           
 long rx
           
 long ty
           
 
Constructor Summary
BoundedObject.BoundedCube()
           
BoundedObject.BoundedCube(BoundedObject.BoundedCube l)
           
BoundedObject.BoundedCube(long[] coords, long radius)
           
BoundedObject.BoundedCube(long lx, long rx, long ty, long by, long iz, long oz)
           
 
Method Summary
 int compareTo(BoundedObject.BoundedCube o)
           
 boolean contains(long x, long y, long z)
           
 long depth()
           
 BoundedObject.BoundedCube expand(double[] direction, long distance)
           
 long height()
           
 boolean intersects(BoundedObject.BoundedCube two)
           
 long radius()
           
 void set(BoundedObject.BoundedCube l)
           
 void union(BoundedObject.BoundedCube l)
           
 long width()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lx

public long lx

ty

public long ty

iz

public long iz

rx

public long rx

by

public long by

oz

public long oz
Constructor Detail

BoundedObject.BoundedCube

public BoundedObject.BoundedCube()

BoundedObject.BoundedCube

public BoundedObject.BoundedCube(long lx,
                                 long rx,
                                 long ty,
                                 long by,
                                 long iz,
                                 long oz)

BoundedObject.BoundedCube

public BoundedObject.BoundedCube(long[] coords,
                                 long radius)

BoundedObject.BoundedCube

public BoundedObject.BoundedCube(BoundedObject.BoundedCube l)
Method Detail

set

public void set(BoundedObject.BoundedCube l)

union

public void union(BoundedObject.BoundedCube l)

radius

public long radius()

expand

public BoundedObject.BoundedCube expand(double[] direction,
                                        long distance)

intersects

public boolean intersects(BoundedObject.BoundedCube two)

contains

public boolean contains(long x,
                        long y,
                        long z)

width

public long width()

height

public long height()

depth

public long depth()

compareTo

public int compareTo(BoundedObject.BoundedCube o)
Specified by:
compareTo in interface java.lang.Comparable<BoundedObject.BoundedCube>