修改了一些bug

dev-VirtualTexture
yang.yongquan 2023-02-10 17:44:09 +08:00
parent 23f14cb764
commit 39aa4a5902
1 changed files with 1 additions and 1 deletions

View File

@ -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<double>((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(