Skip to content

Commit

Permalink
doc and clang tidy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk authored and nyalldawson committed Jan 29, 2025
1 parent 5905092 commit 8511426
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/PyQt6/core/auto_generated/geometry/qgsbox3d.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ Expands the bbox so that it covers both the original rectangle and the given poi
Converts the box to a 2D rectangle.
%End

double distanceTo( const QVector3D &point ) const /Deprecated="Since 3.42. Use distanceTo() with QgsVector3D instead (QVector3D uses floats)."/;
double distanceTo( const QVector3D &point ) const /Deprecated="Since 3.42. Use distanceTo() with QgsVector3D instead (QVector3D uses floats)."/;
%Docstring
Returns the smallest distance between the box and the point ``point``
(returns 0 if the point is inside the box)
Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/geometry/qgsbox3d.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ Expands the bbox so that it covers both the original rectangle and the given poi
Converts the box to a 2D rectangle.
%End

double distanceTo( const QVector3D &point ) const /Deprecated="Since 3.42. Use distanceTo() with QgsVector3D instead (QVector3D uses floats)."/;
double distanceTo( const QVector3D &point ) const /Deprecated="Since 3.42. Use distanceTo() with QgsVector3D instead (QVector3D uses floats)."/;
%Docstring
Returns the smallest distance between the box and the point ``point``
(returns 0 if the point is inside the box)
Expand Down
4 changes: 2 additions & 2 deletions src/3d/qgsvirtualpointcloudentity_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ void QgsVirtualPointCloudEntity::handleSceneUpdate( const SceneContext &sceneCon

// magic number 256 is the common span value for a COPC root node
constexpr int SPAN = 256;
const float epsilon = std::min( box3D.width(), box3D.height() ) / SPAN;
const float distance = box3D.distanceTo( cameraPosMapCoords );
const float epsilon = static_cast<float>( std::min( box3D.width(), box3D.height() ) ) / SPAN;
const float distance = static_cast<float>( box3D.distanceTo( cameraPosMapCoords ) );
const float sse = Qgs3DUtils::screenSpaceError( epsilon, distance, sceneContext.screenSizePx, sceneContext.cameraFov );
constexpr float THRESHOLD = .2;

Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsbox3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ class CORE_EXPORT QgsBox3D
* \since QGIS 3.18
* \deprecated QGIS 3.42. Use distanceTo() with QgsVector3D instead (QVector3D uses floats).
*/
double distanceTo( const QVector3D &point ) const SIP_DEPRECATED { return distanceTo( QgsVector3D( point ) ); }
Q_DECL_DEPRECATED double distanceTo( const QVector3D &point ) const SIP_DEPRECATED { return distanceTo( QgsVector3D( point ) ); }

/**
* Returns the smallest distance between the box and the point \a point
Expand Down

0 comments on commit 8511426

Please sign in to comment.