mirror of
https://github.com/farmakis/qVoxFall.git
synced 2026-08-30 16:40:24 +08:00
fix roation angle bug
This commit is contained in:
@@ -39,6 +39,10 @@
|
||||
|
||||
float qVoxFallTransform::GetRotationAngle(double azimuth)
|
||||
{
|
||||
if (azimuth > 180)
|
||||
{
|
||||
azimuth = azimuth - 180;
|
||||
}
|
||||
double azimuthRadians = azimuth * 3.14159 / 180;
|
||||
|
||||
std::vector<double> direction = { sin(azimuthRadians), cos(azimuthRadians) };
|
||||
|
||||
Reference in New Issue
Block a user