Point: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user