BoundingBox class
BoundingBox class
The axis-aligned bounding box
The BoundingBox type exposes the following members:
Constructors
| Constructor | Description |
|---|
| init | Initialize a finite bounding box with given minimum and maximum corner |
| init | Initialize a finite bounding box with given minimum and maximum corner |
| init | Constructs a new instance of BoundingBox |
Properties
| Property | Description |
|---|
| extent | Gets the extent of the bounding box. |
| minimum | The minimum corner of the bounding box |
| maximum | The maximum corner of the bounding box |
| size | The size of the bounding box |
| center | The center of the bounding box. |
| NULL | The null bounding box |
| INFINITE | The infinite bounding box |
Methods
| Method | Description |
|---|
| merge | Merge current bounding box with given point |
| merge | Merge current bounding box with given point |
| merge | Merge current bounding box with given point |
| merge | Merges the new box into the current bounding box. |
| scale | Calculates the absolute largest coordinate value of any contained point. |
| from_geometry | Construct a bounding box from given geometry |
| overlaps_with | Check if current bounding box overlaps with specified bounding box. |
| contains | Check if the point p is inside the bounding box |
See Also