Abstract
Abstract
boundsAbstract
coordinateThe coordinate type this shape. This property is read only. An Error will be thrown when trying to assign to this property.
Abstract
depthThe depth of the bounding box (the box's extent along the Z-axis). The depth must be larger than or equal to zero.
Abstract
focusThe focus point of this shape. This property is read only. An error will be thrown when trying to assign to this property. This property contains an object but should be treated with value semantics: changes to the shape will not be reflected in the focusPoint that was retrieved from this Polygon before the modification.
Abstract
heightThe height of the bounding box (the box's extent along the Y-axis). The height must be larger than or equal to zero.
The spatial reference of this shape. This property is read only. An Error will be thrown when trying to assign to this property.
Abstract
widthThe width of this bounding box (the box's extent along the x-axis). The width must be larger than or equal to zero.
Abstract
xThe x coordinate or longitude of the location of the bounding box.
Abstract
yThe y coordinate or latitude of the location of the bounding box.
Abstract
zThe z coordinate of the location of the bounding box.
Abstract
contains2DDetermines whether a given bounds is inside this bounds. This method checks containment only in two dimensions: on the (x,y)-axis or the (lon,lat)-axis (depending on the spatial reference of the shape).
The bounds for which containment must be checked. If a 3D bounds is passed to this function, it will be treated as a 2D bounds: the z coordinate (height) will be ignored. The reference of the passed bounds must be the same reference as this Bounds
true
when the given bounds are contained in this bounds
Determines whether a given bounds is inside this bounds. This method checks containment only in two dimensions: on the (x,y)-axis or the (lon,lat)-axis (depending on the spatial reference of the shape).
The bounds for which containment must be checked. If a 3D bounds is passed to this function, it will be treated as a 2D bounds: the z coordinate (height) will be ignored. The reference of the passed bounds must be the same reference as this Bounds
true
when the given bounds are contained in this bounds
Bounds with another spatial reference
Abstract
contains2DCoordinatesDetermines whether the given point is inside this shape. This method checks containment only in two dimensions: on the (x,y)-axis or the (lon,lat)-axis (depending on the spatial reference of the shape).
The x coordinate of the point for which containment must be checked
The y coordinate of the point for which containment must be checked
true
when the given point is contained in this shape
Point with another spatial reference
Determines whether the given point is inside this shape. This method checks containment only in two dimensions: on the (x,y)-axis or the (lon,lat)-axis (depending on the spatial reference of the shape).
The point for which containment must be checked.
true
when the given point is contained in this shape
Point with another spatial reference
Check whether this Bounds instance contains the bounds in the 3D space.
true when the point or bounds are contained
InvalidReferenceError when the reference of the bounds parameter does not correspond with the reference of this Bounds
Please use contains3DBounds instead.
Abstract
contains3DBoundsCheck whether this Bounds instance contains the bounds in the 3D space.
The bounds whose containment must be checked
true when the point or bounds are contained
InvalidReferenceError when the reference of the bounds parameter does not correspond with the reference of this Bounds
Determines whether a given point is inside this shape. This method checks containment in three dimensions: on the (x,y,z)-axis or the (lon,lat,height)-axis (depending on the spatial reference of the shape).
The point for which containment must be checked. If a 3D point is passed to this function, a z-coordinate (height) value of 0 is assumed. This point must have the same spatial reference as the shape.
Point with another spatial reference.
Abstract
copyAbstract
equalsIndicates whether this shape is equal to another.
the other shape this shape is compared with.
true
if both shapes are equal, false
otherwise.
Abstract
interacts2DChecks whether this Bounds object interacts with the given Bounds object in the 2D space. Only the first two dimensions of the Bounds objects are considered.
the bounds to compare with.
the boolean result of the interaction test.
Moves the location of this Bounds instance to the location specified by x and y.
x coordinate value or the location as a point.
Optional
y: numbery coordinate value
InvalidReferenceError when the reference of the Point parameter does not correspond with the reference of this Bounds.
Abstract
move2DToMoves the location of this Bounds instance to the location of the point. The z-value of the point is ignored.
InvalidReferenceError when the reference of the Point parameter does not correspond with the reference of this Bounds.
Moves this Bounds instance to the location specified by the x, y and z parameters.
x coordinate value or the point to move the location of this bounds to
Optional
y: numbery coordinate value
Optional
z: numberz coordinate value
InvalidReferenceError when the reference of the Point parameter does not correspond with the reference of this Bounds.
Abstract
move3DToMoves this Bounds instance to the location in 3D space as specified by the point.
the point to move the location of this bounds to.
InvalidReferenceError when the reference of the Point parameter does not correspond with the reference of this Bounds.
Abstract
setConfigure this Bounds instance in 2 dimensions.
The x coordinate of Bounds instance's location.
The width of the Bounds instance.
The y coordinate of the Bounds instance's
The height of the Bounds instance's location
Abstract
setCalculates the 2D intersection of this Bounds instance and a given Bounds instance. Only the first two dimensions of the Bounds objects are considered. This Bounds object is updated with the result. Its third dimension is left unchanged.
the other Bounds operand for the intersection.
InvalidReferenceError when the reference of the Bounds parameter does not correspond with the reference of this Bounds object
Abstract
setCalculates the 2D union of this Bounds instance and a given Bounds instance. The result contains at least all the points that are contained in either of the Bounds objects (and typically more). Only the first two dimensions of the Bounds objects are considered. This Bounds object is updated with the result. Its third dimension is left unchanged.
the other Bounds operand for the union.
InvalidReferenceError when the reference of the Bounds parameter does not correspond with the reference of this Bounds object
Abstract
setConfigure this Bounds instance in 3 dimensions.
The x coordinate of Bounds instance's location.
The width of the Bounds instance.
The y coordinate of the Bounds instance's
The height of the Bounds instance's location
The z coordinate of the Bounds instance's
The depth of the Bounds instance's location
Abstract
setCalculates the 3D intersection of this Bounds instance and a given Bounds instance. This Bounds object is updated with the result.
the other Bounds operand for the intersection.
InvalidReferenceError when the reference of the Bounds parameter does not correspond with the reference of this Bounds object
Abstract
setCalculates the 3D union of this Bounds object and a given Bounds object. The result contains at least all the points that are contained in either or both of the Bounds objects (and typically more). This Bounds object is updated with the result.
the other Bounds operand for the union.
InvalidReferenceError when the reference of the Bounds parameter does not correspond with the reference of this Bounds object
Abstract
setConfigure this Bounds instance in 2 dimensions, using the dimensions of another Bounds instance.
the bounds that must be used to configure this bounds. Only the x, width, y and height properties of this bounds instance will be considered.
InvalidReferenceError if bounds is defined in a different reference
Abstract
setConfigure this Bounds instance in 2 dimensions, using the dimensions of another Bounds instance.
the bounds that must be used to configure this bounds.
InvalidReferenceError if bounds is defined in a different reference
Abstract
setCalculates the 2D extension of this Bounds object that contains a given Point. The result contains at least the given point and all the points that are contained in this Bounds (and typically more). Only the first two dimensions of this Bounds object and the Bounds are considered. This Bounds object is updated with the result. Its third dimension is left unchanged.
the point that should be inside (or at the edge) after the extension of the bounds.
Point's reference does not match the spatial reference of this Bounds.
Abstract
setCalculates the 3D extension of this Bounds that contains a given Point.
The result contains at least the given point and all the points that are contained in this
Bounds (and typically more). This Bounds object is updated
with the result.
the point operand for the union.
Point's reference does not match the spatial reference of this Bounds.
Translates this bounds from its current position over the given translation vector to another location. This method can be called with an x, y and optionally a z value. If the z coordinate is not specified, the translation will only affect the x and y coordinate.
x coordinate value
y coordinate value
Optional
z: numberz coordinate value, may be omitted.
Abstract
translate2DAbstract
translate3D
A Bounds object is a 3D axis-aligned box. It has a location, a width, height, and a depth. The location is represented by the smallest x, y and z coordinate encompassed by the box, i.e. the lower-left corner. The width, height and depth are the box's extents in the positive directions of the x, y and z axis, respectively.
Note that Bounds instances will be normalized when (re)configuring them. width, h In case the Bounds instance is defined in a CoordinateType.GEODETIC coordinate system, the properties will be normalized: