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.
|
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... | |
|
constexprnoexcept |
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\).
angle_in_radians | an angle measured in radians |
Definition at line 93 of file angle.hpp.
|
constexprnoexcept |
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\).
angle_in_degrees | an angle measured in degrees |
Definition at line 78 of file angle.hpp.
|
constexpr |
|
constexpr |
|
constexpr |
\(\frac{\pi}{4}\)
QUARTER_PI is a mathematical constant with the value ~0.7853982. It is one quarter the ratio of the circumference of a circle to its diameter. It is useful in combination with the trigonometric functions sin() and cos().
|
constexpr |