Skip to content

Commit

Permalink
Fix compilation on simple_demo_qml on Windows (#986)
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Traversaro <silvio.traversaro@iit.it>
  • Loading branch information
traversaro committed Apr 15, 2024
1 parent b83ee40 commit 38baca4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/simple_demo_qml/GzRenderer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

#include <gz/common/Console.hh>

#include <gz/math/Helpers.hh>

#include <iostream>

using namespace gz;
Expand Down Expand Up @@ -285,7 +287,7 @@ void GzRenderer::InitEngine()
//////////////////////////////////////////////////
void GzRenderer::UpdateCamera()
{
double angle = this->cameraOffset / 2 * M_PI;
double angle = this->cameraOffset / 2 * GZ_PI;
double x = sin(angle) * 3.0 + 3.0;
double y = cos(angle) * 3.0;
this->camera->SetLocalPosition(x, y, 0.0);
Expand Down

0 comments on commit 38baca4

Please sign in to comment.