Skip to content

Commit

Permalink
added M_PI
Browse files Browse the repository at this point in the history
  • Loading branch information
KenthJohan committed Jan 16, 2024
1 parent 8ce791b commit 969c843
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/ouster_3d/src/gcamera.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include <assert.h>
#include <stdio.h>

#ifndef M_PI
#define M_PI (3.14159265358979323846)
#endif

static void quaternion_rotation_procedure(float const look[3], float q[4], float speed)
{
assert(fabsf(V4_DOT(q, q) - 1.0f) < 0.1f); // Check quaternion valididy:
Expand Down

0 comments on commit 969c843

Please sign in to comment.