Implement/match LegoPathCtrlEdge::FUN_10048c40 (#1195)

* Implement/match LegoPathCtrlEdge::FUN_10048c40

* Improve matches
This commit is contained in:
Christian Semmler
2024-12-07 09:58:51 -07:00
committed by GitHub
parent 94ce89cbaa
commit 5be00e1799
3 changed files with 86 additions and 10 deletions

View File

@@ -74,7 +74,7 @@ public:
point += *m_pointB;
point *= 0.5f;
point -= p_vec;
return sqrt(point.LenSquared());
return sqrt((double) point.LenSquared());
}
// FUNCTION: BETA10 0x100bd540
@@ -87,7 +87,7 @@ public:
point2 += *p_other.m_pointB;
point2 *= 0.5f;
point1 -= point2;
return sqrt(point1.LenSquared());
return sqrt((double) point1.LenSquared());
}
// FUNCTION: BETA10 0x1001cc60