40 QgsAABB(
float xMin,
float yMin,
float zMin,
float xMax,
float yMax,
float zMax );
43 float xExtent()
const {
return xMax - xMin; }
45 float yExtent()
const {
return yMax - yMin; }
47 float zExtent()
const {
return zMax - zMin; }
50 float xCenter()
const {
return ( xMax + xMin ) / 2; }
52 float yCenter()
const {
return ( yMax + yMin ) / 2; }
54 float zCenter()
const {
return ( zMax + zMin ) / 2; }
57 QVector3D
center()
const {
return QVector3D( xCenter(), yCenter(), zCenter() ); }
59 QVector3D
minimum()
const {
return QVector3D( xMin, yMin, zMin ); }
61 QVector3D
maximum()
const {
return QVector3D( xMax, yMax, zMax ); }
64 bool intersects(
const QgsAABB &other )
const;
67 bool intersects(
float x,
float y,
float z )
const;
70 float distanceFromPoint(
float x,
float y,
float z )
const;
73 float distanceFromPoint( QVector3D v )
const;
76 QList<QVector3D> verticesForLines()
const;