From 39aa4a5902fc872a0972ba9f75148c6d8418e6bb Mon Sep 17 00:00:00 2001 From: "yang.yongquan" <3395816735@qq.com> Date: Fri, 10 Feb 2023 17:44:09 +0800 Subject: [PATCH] =?UTF-8?q?=20=20=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=BA=9Bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ArchitectureColoredPainting/src/Renderer/Painting/BvhTree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArchitectureColoredPainting/src/Renderer/Painting/BvhTree.h b/ArchitectureColoredPainting/src/Renderer/Painting/BvhTree.h index 2748327..4abc27f 100644 --- a/ArchitectureColoredPainting/src/Renderer/Painting/BvhTree.h +++ b/ArchitectureColoredPainting/src/Renderer/Painting/BvhTree.h @@ -21,7 +21,7 @@ namespace Renderer leftSon, rightSon); } QVector4D boundWithRotation() { - double angle = (rightSon & ((1 << 16) - 1)) * acos(-1); + double angle = (rightSon & ((1 << 16) - 1)) / static_cast((1 << 16)) * acos(-1); double px = bound.x() * cos(angle) + bound.y() * sin(angle), py = bound.y() * cos(angle) - bound.x() * sin(angle); double qx = bound.z() * cos(angle) + bound.w() * sin(angle), qy = bound.w() * cos(angle) - bound.z() * sin(angle); return QVector4D(