Merge pull request #21685 from chennes/CAMPathSimulatorTruncation
CAM(PathSimulator): Use single-precision pi
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
|
||||
|
||||
@@ -36,8 +36,6 @@
|
||||
namespace MillSim
|
||||
{
|
||||
|
||||
using std::numbers::pi;
|
||||
|
||||
void SimDisplay::InitShaders()
|
||||
{
|
||||
// use shaders
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
namespace MillSim
|
||||
{
|
||||
|
||||
using std::numbers::pi;
|
||||
constexpr auto pi = std::numbers::pi_v<float>;
|
||||
|
||||
struct Point3D
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user