mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-11 10:41:16 +00:00
Clang-format of legoroi
This commit is contained in:
parent
cbd5a90503
commit
bf76930f82
@ -679,7 +679,8 @@ LegoU32 LegoROI::Intersect(
|
||||
float intersectionDistance = p_rayDirection.Dot(p_rayDirection, boxFacePlanes[i]);
|
||||
|
||||
if (intersectionDistance >= 0.01 || intersectionDistance < -0.01) {
|
||||
intersectionDistance = -((boxFacePlanes[i][3] + rayOrigin.Dot(rayOrigin, boxFacePlanes[i])) / intersectionDistance);
|
||||
intersectionDistance =
|
||||
-((boxFacePlanes[i][3] + rayOrigin.Dot(rayOrigin, boxFacePlanes[i])) / intersectionDistance);
|
||||
|
||||
if (intersectionDistance >= 0.0f && intersectionDistance <= p_rayLength) {
|
||||
Mx3DPointFloat intersectionPoint(p_rayDirection);
|
||||
@ -689,7 +690,8 @@ LegoU32 LegoROI::Intersect(
|
||||
LegoS32 j;
|
||||
for (j = 0; j < 6; j++) {
|
||||
if (i != j && i - j != 3 && j - i != 3) {
|
||||
if (boxFacePlanes[j][3] + intersectionPoint.Dot(intersectionPoint, boxFacePlanes[j]) < 0.0f) {
|
||||
if (boxFacePlanes[j][3] + intersectionPoint.Dot(intersectionPoint, boxFacePlanes[j]) <
|
||||
0.0f) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user