Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
|
@@ -219,9 +219,11 @@ If the point is a 2D point (no z-coordinate), then the containment test |
|
|
will be performed on the x/y extent of the box only. |
|
|
%End |
|
|
|
|
|
float distanceFromPoint( double x, double y, double z ); |
|
|
float distanceFromPoint( double x, double y, double z ) const; |
|
|
%Docstring |
|
|
Returns shortest distance from the box to a point |
|
|
Returns shortest distance from the box to a point (returns 0 if the point is inside the box) |
|
|
|
|
|
.. versionadded:: 3.18 |
|
|
%End |
|
|
|
|
|
QgsRectangle toRectangle() const; |
|
|
|
@@ -199,9 +199,10 @@ class CORE_EXPORT QgsBox3d |
|
|
bool contains( const QgsPoint &point ) const; |
|
|
|
|
|
/** |
|
|
* Returns shortest distance from the box to a point |
|
|
* Returns shortest distance from the box to a point (returns 0 if the point is inside the box) |
|
|
* \since QGIS 3.18 |
|
|
*/ |
|
|
float distanceFromPoint( double x, double y, double z ); |
|
|
float distanceFromPoint( double x, double y, double z ) const; |
|
|
|
|
|
/** |
|
|
* Converts the box to a 2D rectangle. |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.