19 requires std::equality_comparable<T>
and std::totally_ordered<T>
45 template<std::
integral U>
52 return (
upper -
lower) /
static_cast<T>((
static_cast<std::make_unsigned_t<U>
>(
nsteps) - 1));
95 template<std::
floating_po
int T>
Definition custom_decoration_generator.h:5
constexpr auto min(Angle< Rep1, Units1 > x, Angle< Rep2, Units2 > y) -> std::common_type_t< decltype(x), decltype(y)>
Definition angle.h:267
constexpr ClosedInterval< T > unit_interval()
Definition closed_interval.h:96
constexpr Angle< Rep, Units > clamp(const Angle< Rep, Units > &v, const AngleMin &min, const AngleMax &max)
Definition angle.h:303
constexpr ClosedInterval< T > expand_by_absolute_amount(const ClosedInterval< T > &interval, T abs_amount)
Definition closed_interval.h:104
constexpr auto max(Angle< Rep1, Units1 > x, Angle< Rep2, Units2 > y) -> std::common_type_t< decltype(x), decltype(y)>
Definition angle.h:283
T abs(T num)
Definition common_functions.h:24
constexpr U to(T &&value)
Definition conversion.h:56
and
Definition algorithms.h:158
constexpr ClosedInterval< T > bounding_interval_of(const T &x)
Definition closed_interval.h:111
Definition closed_interval.h:20
constexpr ClosedInterval()=default
friend bool operator==(const ClosedInterval &, const ClosedInterval &)=default
constexpr bool contains(T v) const
Definition closed_interval.h:85
constexpr T half_length() const
Definition closed_interval.h:80
constexpr T step_size(U nsteps) const
Definition closed_interval.h:46
T upper
Definition closed_interval.h:91
T lower
Definition closed_interval.h:90
constexpr ClosedInterval(T lower_, T upper_)
Definition closed_interval.h:24
constexpr T normalized_interpolant_at(T v) const
Definition closed_interval.h:63
constexpr T length() const
Definition closed_interval.h:74