27template <
class D>
constexpr int Nof =
sizeof(
NofDegree(std::declval<D>()));
52 constexpr sal_Int64
m = Nof<To> / std::gcd(Nof<To>, NofFrom);
53 constexpr sal_Int64
d = NofFrom / std::gcd(Nof<To>, NofFrom);
57template <
class D>
inline double toRadians(D x) {
return basegfx::deg2rad<Nof<D>>(
x.get()); }
58template <
class D>
inline double toDegrees(D x) {
return x.get() /
static_cast<double>(Nof<D>); }
Degree< sal_Int32, 100 > Degree100
hundredths of a Degree, normally rotation
Degree< sal_Int16, 10 > Degree10
tenths of a Degree, normally rotation
Degree100 abs(Degree100 x)
char(& NofDegree(Degree< I, N >))[N]
To to(Degree< IofFrom, NofFrom > x)
conversion functions
constexpr auto convert(N n, sal_Int64 mul, sal_Int64 div)