Skip to content

Commit 5f08353

Browse files
committed
Remove infinity()
1 parent dce2d89 commit 5f08353

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

adaptor.eigen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ namespace OrthoTree
151151
if (box.intersects(rayBasePointBox))
152152
return 0.0;
153153

154-
auto constexpr inf = std::numeric_limits<double>::infinity();
154+
auto constexpr inf = std::numeric_limits<double>::max();
155155

156156
auto minBoxDistances = std::array<double, AmbientDim_>{};
157157
auto maxBoxDistances = std::array<double, AmbientDim_>{};

adaptor.unreal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ namespace OrthoTree
504504
if (box.Intersect(rayBasePointBox))
505505
return 0.0;
506506

507-
auto constexpr inf = std::numeric_limits<double>::infinity();
507+
auto constexpr inf = std::numeric_limits<double>::max();
508508

509509
auto minBoxDistances = std::array<double, AmbientDim_>{};
510510
auto maxBoxDistances = std::array<double, AmbientDim_>{};

octree.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ namespace OrthoTree
583583
if (DoesBoxContainPoint(box, rayBasePoint, tolerance))
584584
return 0.0;
585585

586-
auto constexpr inf = std::numeric_limits<double>::infinity();
586+
auto constexpr inf = std::numeric_limits<double>::max();
587587

588588
auto minBoxDistances = std::array<double, DIMENSION_NO>{};
589589
auto maxBoxDistances = std::array<double, DIMENSION_NO>{};
@@ -1063,7 +1063,7 @@ namespace OrthoTree
10631063
if (DoesBoxContainPointAD(center, halfSizes, rayBasePoint, tolerance))
10641064
return 0.0;
10651065

1066-
auto constexpr inf = std::numeric_limits<double>::infinity();
1066+
auto constexpr inf = std::numeric_limits<double>::max();
10671067

10681068
auto minBoxDistances = Vector{};
10691069
auto maxBoxDistances = Vector{};

0 commit comments

Comments
 (0)