3 Axis-aligned bounding box - in world coords.
More...
#include <qgsaabb.h>
3 Axis-aligned bounding box - in world coords.
- Since
- QGIS 3.0
Definition at line 30 of file qgsaabb.h.
◆ QgsAABB() [1/2]
Constructs bounding box with null coordinates.
◆ QgsAABB() [2/2]
QgsAABB::QgsAABB |
( |
float |
xMin, |
|
|
float |
yMin, |
|
|
float |
zMin, |
|
|
float |
xMax, |
|
|
float |
yMax, |
|
|
float |
zMax |
|
) |
| |
Constructs bounding box.
Definition at line 18 of file qgsaabb.cpp.
◆ center()
QVector3D QgsAABB::center |
( |
| ) |
const |
|
inline |
Returns coordinates of the center of the box.
Definition at line 54 of file qgsaabb.h.
◆ distanceFromPoint() [1/2]
float QgsAABB::distanceFromPoint |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| const |
Returns shortest distance from the box to a point.
Definition at line 50 of file qgsaabb.cpp.
◆ distanceFromPoint() [2/2]
float QgsAABB::distanceFromPoint |
( |
QVector3D |
v | ) |
const |
Returns shortest distance from the box to a point.
Definition at line 58 of file qgsaabb.cpp.
◆ intersects() [1/2]
bool QgsAABB::intersects |
( |
const QgsAABB & |
other | ) |
const |
Determines whether the box intersects some other axis aligned box.
Definition at line 35 of file qgsaabb.cpp.
◆ intersects() [2/2]
bool QgsAABB::intersects |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| const |
Determines whether given coordinate is inside the box.
Definition at line 42 of file qgsaabb.cpp.
◆ maximum()
QVector3D QgsAABB::maximum |
( |
| ) |
const |
|
inline |
Returns corner of the box with maximal coordinates.
Definition at line 58 of file qgsaabb.h.
◆ minimum()
QVector3D QgsAABB::minimum |
( |
| ) |
const |
|
inline |
Returns corner of the box with minimal coordinates.
Definition at line 56 of file qgsaabb.h.
◆ verticesForLines()
QList< QVector3D > QgsAABB::verticesForLines |
( |
| ) |
const |
Returns a list of pairs of vertices (useful for display of bounding boxes)
Definition at line 63 of file qgsaabb.cpp.
◆ xCenter()
float QgsAABB::xCenter |
( |
| ) |
const |
|
inline |
Returns center in X axis.
Definition at line 47 of file qgsaabb.h.
◆ xExtent()
float QgsAABB::xExtent |
( |
| ) |
const |
|
inline |
Returns box width in X axis.
Definition at line 40 of file qgsaabb.h.
◆ yCenter()
float QgsAABB::yCenter |
( |
| ) |
const |
|
inline |
Returns center in Y axis.
Definition at line 49 of file qgsaabb.h.
◆ yExtent()
float QgsAABB::yExtent |
( |
| ) |
const |
|
inline |
Returns box width in Y axis.
Definition at line 42 of file qgsaabb.h.
◆ zCenter()
float QgsAABB::zCenter |
( |
| ) |
const |
|
inline |
Returns center in Z axis.
Definition at line 51 of file qgsaabb.h.
◆ zExtent()
float QgsAABB::zExtent |
( |
| ) |
const |
|
inline |
Returns box width in Z axis.
Definition at line 44 of file qgsaabb.h.
◆ xMax
float QgsAABB::xMax = 0.0f |
◆ xMin
float QgsAABB::xMin = 0.0f |
◆ yMax
float QgsAABB::yMax = 0.0f |
◆ yMin
float QgsAABB::yMin = 0.0f |
◆ zMax
float QgsAABB::zMax = 0.0f |
◆ zMin
float QgsAABB::zMin = 0.0f |
The documentation for this class was generated from the following files:
- /tmp/buildd/qgis-3.6.0+99unstable/src/3d/qgsaabb.h
- /tmp/buildd/qgis-3.6.0+99unstable/src/3d/qgsaabb.cpp