QgsAABB class
3 Axis-aligned bounding box - in world coords.
Contents
Constructors, destructors, conversion operators
Public functions
- auto center() const -> QVector3D
- Returns coordinates of the center of the box.
- auto distanceFromPoint(float x, float y, float z) const -> float
- Returns shortest distance from the box to a point.
- auto distanceFromPoint(QVector3D v) const -> float
- Returns shortest distance from the box to a point.
- auto intersects(const QgsAABB& other) const -> bool
- Determines whether the box intersects some other axis aligned box.
- auto intersects(float x, float y, float z) const -> bool
- Determines whether given coordinate is inside the box.
- auto maximum() const -> QVector3D
- Returns corner of the box with maximal coordinates.
- auto minimum() const -> QVector3D
- Returns corner of the box with minimal coordinates.
- auto verticesForLines() const -> QList<QVector3D>
- Returns a list of pairs of vertices (useful for display of bounding boxes)
- auto xCenter() const -> float
- Returns center in X axis.
- auto xExtent() const -> float
- Returns box width in X axis.
- auto yCenter() const -> float
- Returns center in Y axis.
- auto yExtent() const -> float
- Returns box width in Y axis.
- auto zCenter() const -> float
- Returns center in Z axis.
- auto zExtent() const -> float
- Returns box width in Z axis.