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.
-
Box()
- Constructs a new Box object.
-
Box(double, double, double, double)
- Constructs a new Box object.
-
Area()
- Returns the box area.
-
Contains(Box)
- Verifies if input Box is inside.
-
Contains(WPoint)
- Verifies if Box contains input location.
-
Copy(Box)
- Copies the content of input Box.
-
Define(double, double, double, double)
- Defines the box coordinates.
-
Height()
- Returns the box height.
-
Intersection(Box)
- Finds the intersection between two Box objects.
-
Intersects(Box)
- Verifies if two Box objects have intersection.
-
LowerLeft()
- Returns the lower left coordinate as a WPoint object.
-
LowerLeftX()
- Returns the x lower left coordinate.
-
LowerLeftX(double)
- Defines the x lower left coordinate.
-
LowerLeftY()
- Returns the y lower left coordinate.
-
LowerLeftY(double)
- Defines the y lower left coordinate.
-
Union(Box)
- Performs the union with input Box and extends this
Box dimensions if necessary.
-
UpperRight()
- Returns the upper right coordinate as a WPoint object.
-
UpperRightX()
- Returns the x upper right coordinate.
-
UpperRightX(double)
- Defines the x upper right coordinate.
-
UpperRightY()
- Returns the y upper right coordinate.
-
UpperRightY(double)
- Defines the y upper right coordinate.
-
Width()
- Returns the box width.
Box
public Box()
- Constructs a new Box object.
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.
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.
LowerLeftX
public double LowerLeftX()
- Returns the x lower left coordinate.
- Returns:
- returns a double value.
LowerLeftY
public double LowerLeftY()
- Returns the y lower left coordinate.
- Returns:
- returns a double value.
UpperRightX
public double UpperRightX()
- Returns the x upper right coordinate.
- Returns:
- returns a double value.
UpperRightY
public double UpperRightY()
- Returns the y upper right coordinate.
- Returns:
- returns a double value.
LowerLeftX
public void LowerLeftX(double x)
- Defines the x lower left coordinate.
- Parameters:
- x - the x lower left coordinate.
LowerLeftY
public void LowerLeftY(double y)
- Defines the y lower left coordinate.
- Parameters:
- y - the y lower left coordinate.
UpperRightX
public void UpperRightX(double x)
- Defines the x upper right coordinate.
- Parameters:
- x - the x upper right coordinate.
UpperRightY
public void UpperRightY(double y)
- Defines the y upper right coordinate.
- Parameters:
- y - the y upper right coordinate.
LowerLeft
public WPoint LowerLeft()
- Returns the lower left coordinate as a WPoint object.
- Returns:
- returns a WPoint object.
UpperRight
public WPoint UpperRight()
- Returns the upper right coordinate as a WPoint object.
- Returns:
- returns a WPoint object.
Width
public double Width()
- Returns the box width.
- Returns:
- returns a double value.
Height
public double Height()
- Returns the box height.
- Returns:
- returns a double value.
Area
public double Area()
- Returns the box area.
- Returns:
- returns a double value.
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.
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.
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.
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.
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.
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