cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumGeometry::AxisAlignedBox Struct Referencefinal

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AxisAlignedBox() [1/2]

CesiumGeometry::AxisAlignedBox::AxisAlignedBox ( )
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.

◆ AxisAlignedBox() [2/2]

CesiumGeometry::AxisAlignedBox::AxisAlignedBox ( double minimumX_,
double minimumY_,
double minimumZ_,
double maximumX_,
double maximumY_,
double maximumZ_ )
inlineconstexprnoexcept

Creates a new AABB using the range of coordinates the box covers.

Parameters
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.

Member Function Documentation

◆ contains()

bool CesiumGeometry::AxisAlignedBox::contains ( const glm::dvec3 & position) const
inlineconstexprnoexcept

Checks if this AABB contains the given position.

Parameters
positionThe position to check.
Returns
True if this AABB contains the position, false otherwise.

Definition at line 118 of file AxisAlignedBox.h.

Member Data Documentation

◆ center

glm::dvec3 CesiumGeometry::AxisAlignedBox::center

The center of the box.

Definition at line 110 of file AxisAlignedBox.h.

◆ lengthX

double CesiumGeometry::AxisAlignedBox::lengthX

The length of the box on the x-axis.

Definition at line 95 of file AxisAlignedBox.h.

◆ lengthY

double CesiumGeometry::AxisAlignedBox::lengthY

The length of the box on the y-axis.

Definition at line 100 of file AxisAlignedBox.h.

◆ lengthZ

double CesiumGeometry::AxisAlignedBox::lengthZ

The length of the box on the z-axis.

Definition at line 105 of file AxisAlignedBox.h.

◆ maximumX

double CesiumGeometry::AxisAlignedBox::maximumX

The maximum x-coordinate.

Definition at line 80 of file AxisAlignedBox.h.

◆ maximumY

double CesiumGeometry::AxisAlignedBox::maximumY

The maximum y-coordinate.

Definition at line 85 of file AxisAlignedBox.h.

◆ maximumZ

double CesiumGeometry::AxisAlignedBox::maximumZ

The maximum z-coordinate.

Definition at line 90 of file AxisAlignedBox.h.

◆ minimumX

double CesiumGeometry::AxisAlignedBox::minimumX

The minimum x-coordinate.

Definition at line 65 of file AxisAlignedBox.h.

◆ minimumY

double CesiumGeometry::AxisAlignedBox::minimumY

The minimum y-coordinate.

Definition at line 70 of file AxisAlignedBox.h.

◆ minimumZ

double CesiumGeometry::AxisAlignedBox::minimumZ

The minimum z-coordinate.

Definition at line 75 of file AxisAlignedBox.h.


The documentation for this struct was generated from the following file: