Skip to content

Commit

Permalink
address reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Jan 13, 2021
1 parent f85d551 commit a97ade0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions python/core/auto_generated/geometry/qgsbox3d.sip.in
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions src/core/geometry/qgsbox3d.h
Expand Up @@ -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.
Expand Down

0 comments on commit a97ade0

Please sign in to comment.