Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and nyalldawson committed Jan 29, 2025
1 parent a0414c4 commit 5905092
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/3d/qgsaabb.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ class _3D_EXPORT QgsAABB
*/
static QgsAABB fromBox3D( const QgsBox3D &box3D, const QgsVector3D &origin )
{
return QgsAABB( static_cast<float>( box3D.xMinimum() - origin.x() ),
static_cast<float>( box3D.yMinimum() - origin.y() ),
static_cast<float>( box3D.zMinimum() - origin.z() ),
static_cast<float>( box3D.xMaximum() - origin.x() ),
static_cast<float>( box3D.yMaximum() - origin.y() ),
static_cast<float>( box3D.zMaximum() - origin.z() ) );
return QgsAABB( static_cast<float>( box3D.xMinimum() - origin.x() ), static_cast<float>( box3D.yMinimum() - origin.y() ), static_cast<float>( box3D.zMinimum() - origin.z() ), static_cast<float>( box3D.xMaximum() - origin.x() ), static_cast<float>( box3D.yMaximum() - origin.y() ), static_cast<float>( box3D.zMaximum() - origin.z() ) );
}

//! Returns box width in X axis
Expand Down

0 comments on commit 5905092

Please sign in to comment.