|
ImageScience 3.0.0 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectimagescience.shape.Bounds
public class Bounds
Contains bounding box information of up to 5D shapes. By design, this class does not prevent making the upper bound less than the lower bound in any dimension.
Field Summary | |
---|---|
Point |
lower
Contains the lower bound for each dimension. |
Point |
upper
Contains the upper bound for each dimension. |
Constructor Summary | |
---|---|
Bounds()
Default constructor. |
|
Bounds(Point lower,
Point upper)
Constructor. |
Method Summary | |
---|---|
Bounds |
duplicate()
Duplicates the bounds. |
boolean |
equals(Bounds bounds)
Indicates whether this bounding box is the same as the given bounding box. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Point lower
0
.
public final Point upper
0
.
Constructor Detail |
---|
public Bounds()
public Bounds(Point lower, Point upper)
lower
- A point whose coordinates define the lower bound for each dimension.upper
- A point whose coordinates define the upper bound for each dimension.
java.lang.NullPointerException
- If lower
or upper
is null
.Method Detail |
---|
public Bounds duplicate()
Bounds
object that is an exact copy of this object. All information is copied and no memory is shared between this and the returned object.public boolean equals(Bounds bounds)
bounds
- The bounding box to compare with.
true
if bounds
is not null
and its lower and upper bounds in each dimension are equal to the corresponding lower and upper bounds of this object, or false
if this is not the case.
|
ImageScience 3.0.0 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) Erik Meijering. Permission to use this software and corresponding documentation for educational, research, and not-for-profit purposes, without a fee and without a signed licensing agreement, is granted, subject to the following terms and conditions.
IT IS NOT ALLOWED TO REDISTRIBUTE, SELL, OR LEASE THIS SOFTWARE, OR DERIVATIVE WORKS THEREOF, WITHOUT PERMISSION IN WRITING FROM THE COPYRIGHT HOLDER. THE COPYRIGHT HOLDER IS FREE TO MAKE VERSIONS OF THE SOFTWARE AVAILABLE FOR A FEE OR COMMERCIALLY ONLY.
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OF ANY KIND WHATSOEVER, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE EXPRESS OR IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE AND CORRESPONDING DOCUMENTATION IS PROVIDED "AS IS". THE COPYRIGHT HOLDER HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.