示例#1
0
 /**
  * Create a bounding box between lowerLeft and upperRight
  *
  * @param lowerLeft lower left point of the box
  * @param upperRight upper left point of the box
  */
 public BoundingBox(Point3D lowerLeft, Point3D upperRight) {
   init(
       lowerLeft.getX(),
       upperRight.getX(),
       lowerLeft.getY(),
       upperRight.getY(),
       lowerLeft.getZ(),
       upperRight.getZ());
 }
示例#2
0
 /**
  * Creates a bounding box given the extent
  *
  * @param minx minimum x coordinate
  * @param maxx maximum x coordinate
  * @param miny minimum y coordinate
  * @param maxy maximum y coordinate
  */
 public BoundingBox(double minx, double maxx, double miny, double maxy, double minz, double maxz) {
   init(minx, maxx, miny, maxy, minz, maxz);
 }
示例#3
0
 /**
  * Copy constructor
  *
  * @param other the copied bounding box
  */
 public BoundingBox(BoundingBox other) {
   if (other.isNull()) setToNull();
   else init(other.minx, other.maxx, other.miny, other.maxy, other.minz, other.maxz);
 }