CAM(PathSimulator): Use single-precision pi
All of PathSimulator uses floats, rather than doubles: to prevent compiler warnings about truncation, explicitly use the single-precision version of the standard pi constant.
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include "GlUtils.h"
|
||||
#include <iostream>
|
||||
|
||||
using std::numbers::pi;
|
||||
constexpr auto pi = std::numbers::pi_v<float>;
|
||||
|
||||
#define N_MILL_SLICES 8
|
||||
#define MAX_SEG_DEG (pi / 2.0f) // 90 deg
|
||||
|
||||
Reference in New Issue
Block a user