Point: Use std::numeric_limits and std::numbers instead of defines

This commit is contained in:
Benjamin Nauck
2025-03-27 19:01:59 +01:00
parent 98876d070d
commit 044997b1ac
2 changed files with 2 additions and 2 deletions

View File

@@ -808,7 +808,7 @@ bool PointsGridIterator::InitOnRay(const Base::Vector3d& rclPt,
// needed in NextOnRay() to avoid an infinite loop
_cSearchPositions.clear();
_fMaxSearchArea = FLOAT_MAX;
_fMaxSearchArea = std::numeric_limits<float>::max();
raulElements.clear();

View File

@@ -293,7 +293,7 @@ private:
Base::Vector3d _clPt; /**< Base point of search ray. */
Base::Vector3d _clDir; /**< Direction of search ray. */
bool _bValidRay {false}; /**< Search ray ok? */
float _fMaxSearchArea {FLOAT_MAX};
float _fMaxSearchArea {std::numeric_limits<float>::max()};
/** Checks if a grid position is already visited by NextOnRay(). */
struct GridElement
{