修改了一些bug
parent
23f14cb764
commit
39aa4a5902
|
@ -21,7 +21,7 @@ namespace Renderer
|
||||||
leftSon, rightSon);
|
leftSon, rightSon);
|
||||||
}
|
}
|
||||||
QVector4D boundWithRotation() {
|
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 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);
|
double qx = bound.z() * cos(angle) + bound.w() * sin(angle), qy = bound.w() * cos(angle) - bound.z() * sin(angle);
|
||||||
return QVector4D(
|
return QVector4D(
|
||||||
|
|
Loading…
Reference in New Issue