We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if (!halfPassed) { //确保-pi/2 < ori - startOri < 3*pi/2 if (ori < startOri - M_PI / 2) { ori += 2 * M_PI; } else if (ori > startOri + M_PI * 3 / 2) { ori -= 2 * M_PI; } if (ori - startOri > M_PI) { halfPassed = true; } } else { //确保-3*pi/2 < ori - endOri < pi/2 ori += 2 * M_PI; if (ori < endOri - M_PI * 3 / 2) { ori += 2 * M_PI; } else if (ori > endOri + M_PI / 2) { ori -= 2 * M_PI; } } float relTime = (ori - startOri) / (endOri - startOri);
您好,我想问一下关于这块的公式是正确的吗?M_PI < endOri - startOri < 3 * M_PI,-pi/2 < ori - startOri < 3*pi/2 我发现计算出的结果是错误的,我不知道是不是我的理解有问题,能帮吗解答一下吗?在我理解中,应该将ori按照endori的方式,加2π,然后再分类讨论,才能得出正确的时间结果。
The text was updated successfully, but these errors were encountered:
我也有相同的 疑问
Sorry, something went wrong.
我也有相同的疑问
我也有疑问,请问理解了吗
No branches or pull requests
您好,我想问一下关于这块的公式是正确的吗?M_PI < endOri - startOri < 3 * M_PI,-pi/2 < ori - startOri < 3*pi/2
我发现计算出的结果是错误的,我不知道是不是我的理解有问题,能帮吗解答一下吗?在我理解中,应该将ori按照endori的方式,加2π,然后再分类讨论,才能得出正确的时间结果。
The text was updated successfully, but these errors were encountered: