From bf76930f8298ae56d326a2b776a2c5e2b2e5638b Mon Sep 17 00:00:00 2001 From: Sebastian Mischke Date: Mon, 5 Jan 2026 13:13:40 +0100 Subject: [PATCH] Clang-format of legoroi --- LEGO1/lego/sources/roi/legoroi.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LEGO1/lego/sources/roi/legoroi.cpp b/LEGO1/lego/sources/roi/legoroi.cpp index a57289d0..fd1b6de6 100644 --- a/LEGO1/lego/sources/roi/legoroi.cpp +++ b/LEGO1/lego/sources/roi/legoroi.cpp @@ -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; } }