You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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:
@@ -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])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user