Clones an existing cube Envelope to create a duplicate cube Envelope.
Clones an existing cube Envelope to create a duplicate cube Envelope.
original cube Envelope to be cloned
Creates an cube Envelope for a region defined one coordinate.
Creates an cube Envelope for a region defined one coordinate. The cube Envelope in this case will be a point.
the coordinate
Creates an cube Envelope for a region defined by two coordinates.
Creates an cube Envelope for a region defined by two coordinates.
first coordinate
second coordinate
Creates an cube Envelope for a region defined by three coordinates.
Creates an cube Envelope for a region defined by three coordinates.
first coordinate
second coordinate
third coordinate
Creates a null cube Envelope
Computes the coordinate of the centre of this cube Envelope (as long as it is non-null)
Computes the coordinate of the centre of this cube Envelope (as long as it is non-null)
he centre coordinate of this cube Envelope, null if the cube Envelope is null
Tests if the given point lies in or on the envelope.
Tests if the given point lies in or on the envelope.
the x-coordinate of the point for which the containment is to be checked
the y-coordinate of the point for which the containment is to be checked
the z-coordinate of the point for which the containment is to be checked
true if (x, y, z) lies in the interior or on the boundary of this cube Envelope, false if the cube Envelope is null.
Tests if the cube Envelope other lies wholely inside this cube Envelope (inclusive of the boundary).
Tests if the cube Envelope other lies wholely inside this cube Envelope (inclusive of the boundary).
the cube Envelope to check
true if this cube Envelope covers the other cube Envelope, false if either of these cube Envelope is null
Tests if the given point lies in or on the envelope.
Tests if the given point lies in or on the envelope.
Point3D to be checked for the containment
true if the p lies in the interior or on the boundary of this cube Envelope, false if the cube Envelope is null.
Tests if the cube Envelope other lies completely inside this cube Envelope (inclusive of the boundary).
Tests if the cube Envelope other lies completely inside this cube Envelope (inclusive of the boundary).
the cube Envelope to check
true if this cube Envelope covers the other cube Envelope, false if either of these cube Envelope is null
Tests if the given point lies in or on the envelope.
Tests if the given point lies in or on the envelope.
the x-coordinate of the point for which this cube Envelope is being checked for containment
the y-coordinate of the point for which this cube Envelope is being checked for containment
the z-coordinate of the point for which this cube Envelope is being checked for containment
true if (x, y, z) lies in the interior or on the boundary of this cube Envelope, false if the cube Envelope is null.
Tests if the given point lies in or on the envelope.
Tests if the given point lies in or on the envelope.
Point3D to be checked for the containment
true if the p lies in the interior or on the boundary of this cube Envelope, false if the cube Envelope is null.
Computes the distance between this and another cube Envelope The distance between overlapping cube Envelopes is 0.
Computes the distance between this and another cube Envelope The distance between overlapping cube Envelopes is 0. Otherwise, the distance is the Euclidean distance between the closest points.
the other cube Envelope from which distance is to be computed
the distance between the two cube Envelopes
Expand cube Envelope by given distances along the three dimension.
Expand cube Envelope by given distances along the three dimension.
the distance to expand the cube Envelope along the the X axis
the distance to expand the cube Envelope along the the Y axis
the distance to expand the cube Envelope along the the Z axis
Expand cube Envelope by given distance along the all three dimensions.
Expand cube Envelope by given distance along the all three dimensions.
the distance to expand the cube Envelope along all the axes
Expand the cube Envelope so that it includes the other cube Envelope.
Expand the cube Envelope so that it includes the other cube Envelope.
the cube Envelope to expand to include
Enlarges this cube Envelope so that it contains the given point.
Enlarges this cube Envelope so that it contains the given point. Has no effect if the point is already on or within the envelope.
the value to lower the minimum x to or to raise the maximum x to
the value to lower the minimum y to or to raise the maximum y to
the value to lower the minimum z to or to raise the maximum z to
Expand the cube Envelope so that it contains the given Point
Expand the cube Envelope so that it contains the given Point
the Point to expand to include
Returns the volume of the cube Envelope.
Returns the volume of the cube Envelope.
the volume of the envelope, 0.0 if the cube Envelope is null
Return the difference between max and min X values of the cube Envelope.
Return the difference between max and min X values of the cube Envelope.
maxX - minX, or 0 if the cube Envelope is null
Returns the difference between max and min Y value of the cube Envelope.
Returns the difference between max and min Y value of the cube Envelope.
maxX - minY, or 0 if the cube Envelope is null
Return the difference between max and min Z value of the cube Envelope.
Return the difference between max and min Z value of the cube Envelope.
maxZ - minZ, or 0 if the cube Envelope is null
Attach an id to the BoxEnvelope to be used while assigning partition ID.
Comptutes the intersection of the two cube Envelopes
Comptutes the intersection of the two cube Envelopes
the envelope to find intersection with
a new cube Envelope representing the intersection of the envelopes (this will be the null envelope if either if the envelopes is null, or they do not intersect
Check if the point (x, y, z) intersects (lies inside) the region of this cube Envelope.
Check if the point (x, y, z) intersects (lies inside) the region of this cube Envelope.
the x-coordinate of the point
the y-coordinate of the point
the z-coordinate of the point
true if the point overlaps this cube Envelope
Checks if the region the three external points intersects the region of this cube Envelope.
Checks if the region the three external points intersects the region of this cube Envelope.
the first external point
the second external point
the third external point
true if the region intersects the other cube Envelope
Checks if the region of the input cube Envelope intersects the region of this cube Envelope.
Checks if the region of the input cube Envelope intersects the region of this cube Envelope.
the cube Envelope with which the intersection is being checked
true if the cube Envelope intersects the other cube Envelope
Checks if the input cube Envelope is equal to the this cube Envelope.
Checks if the input cube Envelope is equal to the this cube Envelope. Return false if the input Object is not an instance of the cube Envelope class or either of these cube Envelopes is Empty.
the other cube Envelope for which the equality is to be checked
true if the two cube Envelopes are equal, false otherwise
Checks if this is a null envelope or not.
Checks if this is a null envelope or not.
if this cube Envelope is null (empty Geometry) or nots
Gets maximum extent of this cube Envelope across all three dimensions.
Gets maximum extent of this cube Envelope across all three dimensions.
the maximum extent of this cube Envelope
maximum coordinate of cube Envelope along X-axis
maximum coordinate of cube Envelope along Y-axis
maximum coordinate of cube Envelope along Z-axis
Gets minimum extent of this cube Envelope across all three dimensions.
Gets minimum extent of this cube Envelope across all three dimensions.
the minimum extent of this cube Envelope
minimum coordinate of cube Envelope along X-axis
minimum coordinate of cube Envelope along Y-axis
minimum coordinate of cube Envelope along Z-axis
Sets this cube Envelope to null
Represent the cube Envelope as a String
Represent the cube Envelope as a String
String representation of the cube Envelope
Translates/move this envelope by given amounts in the X, Y and Z direction.
Translates/move this envelope by given amounts in the X, Y and Z direction.
the amount to translate along the X axis
the amount to translate along the Y axis
the amount to translate along the Z axis
Defines a cubical region of 3D coordinate space. This can be used to define a bounding box of a geometryObject
An cube Envelope can be uniquely defined based on minimum and maximum coordinates along all three axes. On creating the cube Envelope initially, the min's and max's are assigned automatically.
Default constructor is kept private to avoid creating an instance of the cube Envelope class without initialising the min/max coordinates along axes incorrectly.