doodle  0.2
Intended to support teaching C++, doodle is a simple library that helps make a window and makes it easy to do some drawing.
Namespaces | Functions | Variables
angle.hpp File Reference

Go to the source code of this file.

Namespaces

 doodle
 

Functions

constexpr double doodle::to_radians (double angle_in_degrees) noexcept
 Converts a degree measurement to its corresponding value in radians. Radians and degrees are two ways of measuring the same thing. There are 360 degrees in a circle and \(2\pi\) radians in a circle. For example, \(90^{\circ}=\frac{\pi}{2}=1.5707964\). More...
 
constexpr double doodle::to_degrees (double angle_in_radians) noexcept
 Converts a radian measurement to its corresponding value in degrees. Radians and degrees are two ways of measuring the same thing. There are 360 degrees in a circle and \(2\pi\) radians in a circle. For example, \(90^{\circ}=\frac{\pi}{2}=1.5707964\). More...
 

Variables

constexpr double doodle::PI = 3.1415926535897932384626433832795028
 \(\pi\) More...
 
constexpr double doodle::HALF_PI = PI / 2.0
 \(\frac{\pi}{2}\) More...
 
constexpr double doodle::QUARTER_PI = PI / 4.0
 \(\frac{\pi}{4}\) More...
 
constexpr double doodle::TWO_PI = 2.0 * PI
 \(2\pi\) More...