All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sdoOracle.Box

java.lang.Object
   |
   +----sdoOracle.Box

public class Box
extends Object
Class Box defines a minimum bounding rectangle (mbr) for some spatial object. The mbr is defined by a lower left and upper right point coordinate.


Constructor Index

 o Box()
Constructs a new Box object.
 o Box(double, double, double, double)
Constructs a new Box object.

Method Index

 o Area()
Returns the box area.
 o Contains(Box)
Verifies if input Box is inside.
 o Contains(WPoint)
Verifies if Box contains input location.
 o Copy(Box)
Copies the content of input Box.
 o Define(double, double, double, double)
Defines the box coordinates.
 o Height()
Returns the box height.
 o Intersection(Box)
Finds the intersection between two Box objects.
 o Intersects(Box)
Verifies if two Box objects have intersection.
 o LowerLeft()
Returns the lower left coordinate as a WPoint object.
 o LowerLeftX()
Returns the x lower left coordinate.
 o LowerLeftX(double)
Defines the x lower left coordinate.
 o LowerLeftY()
Returns the y lower left coordinate.
 o LowerLeftY(double)
Defines the y lower left coordinate.
 o Union(Box)
Performs the union with input Box and extends this Box dimensions if necessary.
 o UpperRight()
Returns the upper right coordinate as a WPoint object.
 o UpperRightX()
Returns the x upper right coordinate.
 o UpperRightX(double)
Defines the x upper right coordinate.
 o UpperRightY()
Returns the y upper right coordinate.
 o UpperRightY(double)
Defines the y upper right coordinate.
 o Width()
Returns the box width.

Constructors

 o Box
 public Box()
Constructs a new Box object.

 o Box
 public Box(double xmin,
            double ymin,
            double xmax,
            double ymax)
Constructs a new Box object.

Parameters:
xmin - the x minimum coordinate for the mbr area.
ymin - the y minimum coordinate for the mbr area.
xmax - the x maximum coordinate for the mbr area.
ymax - the y maximum coordinate for the mbr area.

Methods

 o Define
 public void Define(double xmin,
                    double ymin,
                    double xmax,
                    double ymax)
Defines the box coordinates.

Parameters:
xmin - the x minimum coordinate for the mbr area.
ymin - the y minimum coordinate for the mbr area.
xmax - the x maximum coordinate for the mbr area.
ymax - the y maximum coordinate for the mbr area.
 o LowerLeftX
 public double LowerLeftX()
Returns the x lower left coordinate.

Returns:
returns a double value.
 o LowerLeftY
 public double LowerLeftY()
Returns the y lower left coordinate.

Returns:
returns a double value.
 o UpperRightX
 public double UpperRightX()
Returns the x upper right coordinate.

Returns:
returns a double value.
 o UpperRightY
 public double UpperRightY()
Returns the y upper right coordinate.

Returns:
returns a double value.
 o LowerLeftX
 public void LowerLeftX(double x)
Defines the x lower left coordinate.

Parameters:
x - the x lower left coordinate.
 o LowerLeftY
 public void LowerLeftY(double y)
Defines the y lower left coordinate.

Parameters:
y - the y lower left coordinate.
 o UpperRightX
 public void UpperRightX(double x)
Defines the x upper right coordinate.

Parameters:
x - the x upper right coordinate.
 o UpperRightY
 public void UpperRightY(double y)
Defines the y upper right coordinate.

Parameters:
y - the y upper right coordinate.
 o LowerLeft
 public WPoint LowerLeft()
Returns the lower left coordinate as a WPoint object.

Returns:
returns a WPoint object.
 o UpperRight
 public WPoint UpperRight()
Returns the upper right coordinate as a WPoint object.

Returns:
returns a WPoint object.
 o Width
 public double Width()
Returns the box width.

Returns:
returns a double value.
 o Height
 public double Height()
Returns the box height.

Returns:
returns a double value.
 o Area
 public double Area()
Returns the box area.

Returns:
returns a double value.
 o Intersects
 public boolean Intersects(Box input)
Verifies if two Box objects have intersection.

Parameters:
input - input Box to evaluate intersection.
Returns:
returns a boolean value true or false.
 o Intersection
 public Box Intersection(Box input)
Finds the intersection between two Box objects.

Parameters:
input - input Box to evaluate intersection.
Returns:
returns a Box object or null.
 o Contains
 public boolean Contains(WPoint wc)
Verifies if Box contains input location.

Parameters:
wc - WPoint object representing a spatial location.
Returns:
returns a boolean value true or false.
 o Contains
 public boolean Contains(Box input)
Verifies if input Box is inside.

Parameters:
input - input Box to evaluate.
Returns:
returns a boolean value true or false.
 o Union
 public void Union(Box input)
Performs the union with input Box and extends this Box dimensions if necessary.

Parameters:
input - input Box to perform union.
 o Copy
 public void Copy(Box input)
Copies the content of input Box.

Parameters:
input - input Box to copy.

All Packages  Class Hierarchy  This Package  Previous  Next  Index