public interface BoundingBox
extends org.eclipse.emf.ecore.EObject
The following features are supported:
GeometryPackage.getBoundingBox()
Modifier and Type | Method and Description |
---|---|
void |
addArea(BoundingBox area)
Adds the given bounding box's area to the area represented by this one.
|
static BoundingBox |
getBounds(Shape shape)
Describes the bounds of the specified Shape object as the smallest box,
orthogonal to the axes, that can contain the specified shape.
|
static BoundingBox |
getBounds(Union union)
Gets the smallest possible bounding box containing the entire Union
object
|
static Vertex |
getCenter(BoundingBox bounds)
Gets the center of the specified bounding box
|
double |
getMaxX()
Returns the value of the 'Max X' attribute.
|
double |
getMaxY()
Returns the value of the 'Max Y' attribute.
|
double |
getMaxZ()
Returns the value of the 'Max Z' attribute.
|
double |
getMinX()
Returns the value of the 'Min X' attribute.
|
double |
getMinY()
Returns the value of the 'Min Y' attribute.
|
double |
getMinZ()
Returns the value of the 'Min Z' attribute.
|
void |
setMaxX(double value)
Sets the value of the '
Max X ' attribute. |
void |
setMaxY(double value)
Sets the value of the '
Max Y ' attribute. |
void |
setMaxZ(double value)
Sets the value of the '
Max Z ' attribute. |
void |
setMinX(double value)
Sets the value of the '
Min X ' attribute. |
void |
setMinY(double value)
Sets the value of the '
Min Y ' attribute. |
void |
setMinZ(double value)
Sets the value of the '
Min Z ' attribute. |
double getMaxX()
setMaxX(double)
,
GeometryPackage.getBoundingBox_MaxX()
void setMaxX(double value)
Max X
' attribute.
value
- the new value of the 'Max X' attribute.getMaxX()
double getMaxY()
"0.0"
. The maximal y value in the bounding box.
setMaxY(double)
,
GeometryPackage.getBoundingBox_MaxY()
void setMaxY(double value)
Max Y
' attribute.
value
- the new value of the 'Max Y' attribute.getMaxY()
double getMaxZ()
"0.0"
. The maximal z value in the bounding box.
setMaxZ(double)
,
GeometryPackage.getBoundingBox_MaxZ()
void setMaxZ(double value)
Max Z
' attribute.
value
- the new value of the 'Max Z' attribute.getMaxZ()
double getMinX()
"0.0"
. The minimal x value in the bounding box.
setMinX(double)
,
GeometryPackage.getBoundingBox_MinX()
void setMinX(double value)
Min X
' attribute.
value
- the new value of the 'Min X' attribute.getMinX()
double getMinY()
"0.0"
. The minimal y value in the bounding box.
setMinY(double)
,
GeometryPackage.getBoundingBox_MinY()
void setMinY(double value)
Min Y
' attribute.
value
- the new value of the 'Min Y' attribute.getMinY()
double getMinZ()
"0.0"
. The minimal z value in the bounding box.
setMinZ(double)
,
GeometryPackage.getBoundingBox_MinZ()
void setMinZ(double value)
Min Z
' attribute.
value
- the new value of the 'Min Z' attribute.getMinZ()
void addArea(BoundingBox area)
static BoundingBox getBounds(Shape shape)
shape
- The shape to determine the bounds ofstatic BoundingBox getBounds(Union union)
union
- The union to find the bounds ofstatic Vertex getCenter(BoundingBox bounds)
bounds
- The BoundingBox to find the center point of