Skip to content

Commit

Permalink
windows non-sense
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Jan 15, 2025
1 parent 4a5dfbf commit c3c1fee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/snippets/all/archetypes/transform3d_partial_updates.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// Log different transforms with visualized coordinates axes.

#include <cmath>
#include <rerun.hpp>

float truncated_radians(float deg) {
return static_cast<float>(static_cast<int>(deg * M_PI / 180.0f * 1000.0f)) / 1000.0f;
#define M_PI 3.14159265358979323846

float truncated_radians(int deg) {
auto degf = static_cast<float>(deg);
return static_cast<float>(static_cast<int>(degf * M_PI / 180.0f * 1000.0f)) / 1000.0f;
}

int main() {
Expand Down

0 comments on commit c3c1fee

Please sign in to comment.