Fix max values, use TNumericLimits.

#jira nojira
#rb jimmy.andrews
#preflight 629e2d50116e8078e3c794db

[CL 20522731 by Christina TempelaarL in ue5-main branch]
This commit is contained in:
Christina TempelaarL
2022-06-06 12:52:43 -04:00
parent ac14386ec2
commit b0bdeb16a6
@@ -471,7 +471,7 @@ void GizmoMath::RayConeIntersection(
// intersection with the positive cone.
if (DdU > 0.0)
{
RayParam[1] = FLT_MAX;
RayParam[1] = TNumericLimits<RealType>::Max();
}
else
{
@@ -562,8 +562,8 @@ void GizmoMath::IntervalIntervalIntersection(
if (Interval0[1] < Interval1[0] || Interval0[0] > Interval1[1])
{
OutNumIntersections = 0;
OutResult0 = FLT_MAX;
OutResult1 = -FLT_MAX;
OutResult0 = TNumericLimits<RealType>::Max();
OutResult1 = -TNumericLimits<RealType>::Max();
}
else if (Interval0[1] > Interval1[0])
{