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

Math constants for float. More...

#include "donner/base/MathUtils.h"

Static Public Attributes

static constexpr float kPi = 3.14159265359f
 Pi.
 
static constexpr float kReciprocalPi = 1.0f / kPi
 1 / Pi.
 
static constexpr float kHalfPi = kPi / 2.0f
 Pi / 2.
 
static constexpr float kDegToRad = kPi / 180.0f
 Degrees to radians ratio.
 
static constexpr float kRadToDeg = 180.0f / kPi
 Radians to degrees ratio.
 
static constexpr float kInvSqrt2 = 0.70710678118f
 1 / sqrt(2).
 

Detailed Description

Math constants for float.


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