RSTools 3.1.0
Versatile C++20 utility library
Loading...
Searching...
No Matches
Constants.hpp File Reference
#include <numbers>

Go to the source code of this file.

Namespaces

namespace  RST
 Root namespace of RSTools.
 
namespace  RST::Maths
 Math helpers: constants, interpolation, random numbers, 2D and 3D vectors and matrices.
 

Variables

Constants

Multiply by DegToRad or RadToDeg to convert an angle.

constexpr double RST::Maths::Pi = std::numbers::pi
 
constexpr double RST::Maths::TwoPi = 2.0 * std::numbers::pi
 
constexpr double RST::Maths::HalfPi = std::numbers::pi / 2.0
 
constexpr double RST::Maths::E = std::numbers::e
 
constexpr double RST::Maths::Sqrt2 = std::numbers::sqrt2
 
constexpr double RST::Maths::DegToRad = std::numbers::pi / 180.0
 
constexpr double RST::Maths::RadToDeg = 180.0 / std::numbers::pi