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(