cesium-native 0.43.0
|
An Axis-Aligned Bounding Box (AABB), where the axes of the box are aligned with the axes of the coordinate system. More...
#include <CesiumGeometry/AxisAlignedBox.h>
Public Member Functions | |
constexpr | AxisAlignedBox () noexcept |
Creates an empty AABB with a length, width, and height of zero, with the center located at (0, 0, 0). | |
constexpr | AxisAlignedBox (double minimumX_, double minimumY_, double minimumZ_, double maximumX_, double maximumY_, double maximumZ_) noexcept |
Creates a new AABB using the range of coordinates the box covers. | |
constexpr bool | contains (const glm::dvec3 &position) const noexcept |
Checks if this AABB contains the given position. | |
Public Attributes | |
double | minimumX |
The minimum x-coordinate. | |
double | minimumY |
The minimum y-coordinate. | |
double | minimumZ |
The minimum z-coordinate. | |
double | maximumX |
The maximum x-coordinate. | |
double | maximumY |
The maximum y-coordinate. | |
double | maximumZ |
The maximum z-coordinate. | |
double | lengthX |
The length of the box on the x-axis. | |
double | lengthY |
The length of the box on the y-axis. | |
double | lengthZ |
The length of the box on the z-axis. | |
glm::dvec3 | center |
The center of the box. | |
An Axis-Aligned Bounding Box (AABB), where the axes of the box are aligned with the axes of the coordinate system.
Definition at line 13 of file AxisAlignedBox.h.
|
inlineconstexprnoexcept |
Creates an empty AABB with a length, width, and height of zero, with the center located at (0, 0, 0).
Definition at line 19 of file AxisAlignedBox.h.
|
inlineconstexprnoexcept |
Creates a new AABB using the range of coordinates the box covers.
minimumX_ | The minimum X coordinate within the box. |
minimumY_ | The minimum Y coordinate within the box. |
minimumZ_ | The minimum Z coordinate within the box. |
maximumX_ | The maximum X coordinate within the box. |
maximumY_ | The maximum Y coordinate within the box. |
maximumZ_ | The maximum Z coordinate within the box. |
Definition at line 41 of file AxisAlignedBox.h.
|
inlineconstexprnoexcept |
Checks if this AABB contains the given position.
position | The position to check. |
Definition at line 118 of file AxisAlignedBox.h.
glm::dvec3 CesiumGeometry::AxisAlignedBox::center |
The center of the box.
Definition at line 110 of file AxisAlignedBox.h.
double CesiumGeometry::AxisAlignedBox::lengthX |
The length of the box on the x-axis.
Definition at line 95 of file AxisAlignedBox.h.
double CesiumGeometry::AxisAlignedBox::lengthY |
The length of the box on the y-axis.
Definition at line 100 of file AxisAlignedBox.h.
double CesiumGeometry::AxisAlignedBox::lengthZ |
The length of the box on the z-axis.
Definition at line 105 of file AxisAlignedBox.h.
double CesiumGeometry::AxisAlignedBox::maximumX |
The maximum x-coordinate.
Definition at line 80 of file AxisAlignedBox.h.
double CesiumGeometry::AxisAlignedBox::maximumY |
The maximum y-coordinate.
Definition at line 85 of file AxisAlignedBox.h.
double CesiumGeometry::AxisAlignedBox::maximumZ |
The maximum z-coordinate.
Definition at line 90 of file AxisAlignedBox.h.
double CesiumGeometry::AxisAlignedBox::minimumX |
The minimum x-coordinate.
Definition at line 65 of file AxisAlignedBox.h.
double CesiumGeometry::AxisAlignedBox::minimumY |
The minimum y-coordinate.
Definition at line 70 of file AxisAlignedBox.h.
double CesiumGeometry::AxisAlignedBox::minimumZ |
The minimum z-coordinate.
Definition at line 75 of file AxisAlignedBox.h.