BoosterSeat  0.1
A C++ library that includes common utilities that are used in other projects.
bst::math Namespace Reference

Variables

constexpr double D2R = PI / 180.0
 Factor to convert degrees to radians. More...
 
constexpr double PI = 3.14159265358979323846
 The mathematical constant pi. More...
 
constexpr double R2D = 180.0 / PI
 Factor to convert radians to degrees. More...
 
constexpr double TWO_PI = 2.0 * PI
 Two times pi. More...
 

Variable Documentation

◆ PI

constexpr double bst::math::PI = 3.14159265358979323846
inlineconstexpr

The mathematical constant pi.

◆ TWO_PI

constexpr double bst::math::TWO_PI = 2.0 * PI
inlineconstexpr

Two times pi.

◆ D2R

constexpr double bst::math::D2R = PI / 180.0
inlineconstexpr

Factor to convert degrees to radians.

Referenced by bst::geo::distance(), and bst::geo::Point::shootVector().

◆ R2D

constexpr double bst::math::R2D = 180.0 / PI
inlineconstexpr

Factor to convert radians to degrees.

Referenced by bst::geo::Point::shootVector().