Skip to content
Permalink
Browse files

address reviews

  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Jan 13, 2021
1 parent f85d551 commit a97ade0e88cb397252efa21e66aceacaf30bb67f
Showing with 7 additions and 4 deletions.
  1. +4 −2 python/core/auto_generated/geometry/qgsbox3d.sip.in
  2. +3 −2 src/core/geometry/qgsbox3d.h
@@ -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.

0 comments on commit a97ade0

Please sign in to comment.
You can’t perform that action at this time.