5 #include <glm/vec3.hpp>
29 double maximumZ_) noexcept
30 : minimumX(minimumX_),
36 lengthX(maximumX - minimumX),
37 lengthY(maximumY - minimumY),
38 lengthZ(maximumZ - minimumZ),
40 0.5 * (maximumX + minimumX),
41 0.5 * (maximumY + minimumY),
42 0.5 * (maximumZ + minimumZ)) {}
94 constexpr
bool contains(
const glm::dvec3& position)
const noexcept {
95 return position.x >= this->minimumX && position.x <= this->maximumX &&
96 position.y >= this->minimumY && position.y <= this->maximumY &&
97 position.z >= this->minimumZ && position.z <= this->maximumZ;
Basic geometry classes for Cesium.
double maximumY
The maximum y-coordinate.
double lengthY
The length of the box on the y-axis.
double lengthX
The length of the box on the x-axis.
double minimumY
The minimum y-coordinate.
double minimumZ
The minimum z-coordinate.
double maximumX
The maximum x-coordinate.
glm::dvec3 center
The center of the box.
double minimumX
The minimum x-coordinate.
double maximumZ
The maximum z-coordinate.
double lengthZ
The length of the box on the z-axis.