|
LibreOffice Module tools (master) 1
|
#include <sal/config.h>#include <basegfx/numeric/ftools.hxx>#include <sal/types.h>#include <o3tl/strong_int.hxx>#include <o3tl/unit_conversion.hxx>#include <cstdlib>#include <math.h>#include <numeric>Go to the source code of this file.
Typedefs | |
| template<typename I , int N> | |
| using | Degree = o3tl::strong_int< I, FractionTag< N > > |
| typedef Degree< sal_Int16, 10 > | Degree10 |
| tenths of a Degree, normally rotation More... | |
| typedef Degree< sal_Int32, 100 > | Degree100 |
| hundredths of a Degree, normally rotation More... | |
Functions | |
| template<typename I , int N> | |
| char(& | NofDegree (Degree< I, N >))[N] |
| constexpr Degree10 | operator""_deg10 (unsigned long long n) |
| custom literal More... | |
| Degree100 | abs (Degree100 x) |
| constexpr Degree100 | operator""_deg100 (unsigned long long n) |
| custom literal More... | |
| template<class To , typename IofFrom , int NofFrom> | |
| To | to (Degree< IofFrom, NofFrom > x) |
| conversion functions More... | |
| template<class D > | |
| double | toRadians (D x) |
| template<class D > | |
| double | toDegrees (D x) |
Variables | |
| template<class D > | |
| constexpr int | Nof = sizeof(NofDegree(std::declval<D>())) |
| using Degree = o3tl::strong_int<I, FractionTag<N> > |
Definition at line 23 of file degree.hxx.
tenths of a Degree, normally rotation
Definition at line 30 of file degree.hxx.
hundredths of a Degree, normally rotation
Definition at line 36 of file degree.hxx.
Definition at line 42 of file degree.hxx.
Referenced by abs(), Color::ApplyTintOrShade(), tools::Duration::Duration(), Color::GetColorError(), tools::Time::GetUTCOffset(), ImplPolygon::ImplPolygon(), and rational_FromDouble().
|
constexpr |
|
constexpr |
conversion functions
Definition at line 50 of file degree.hxx.
References o3tl::convert(), d, m, To, and x.
Referenced by conversionFract().
|
inline |
Definition at line 58 of file degree.hxx.
References x.
|
inline |
Definition at line 57 of file degree.hxx.
References x.
Referenced by tools::Polygon::Rotate(), tools::PolyPolygon::Rotate(), and Point::RotateAround().
Definition at line 27 of file degree.hxx.