Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::MathConstants< double > Struct Reference

Math constants for double. More...

#include "donner/base/MathUtils.h"

Static Public Attributes

static constexpr double kPi = 3.1415926535897932384626433832795028841971693993751
 Pi.
 
static constexpr double kReciprocalPi = 1.0 / kPi
 1 / Pi.
 
static constexpr double kHalfPi = kPi / 2.0
 Pi / 2.
 
static constexpr double kDegToRad = kPi / 180.0
 Degrees to radians ratio.
 
static constexpr double kRadToDeg = 180.0 / kPi
 Radians to degrees ratio.
 
static constexpr double kInvSqrt2 = 0.7071067811865475
 1 / sqrt(2).
 

Detailed Description

Math constants for double.


The documentation for this struct was generated from the following file: