11#ifndef RITE_OF_SPRING_MARVIN_RECIPROCAL_H
12#define RITE_OF_SPRING_MARVIN_RECIPROCAL_H
18 template <FloatType T>
36 template <FloatType T>
39 .min = other.
min + constant,
40 .centre = other.
centre + constant,
41 .max = other.
max + constant
45 template <FloatType T>
48 .min = other.
min - constant,
49 .centre = other.
centre - constant,
50 .max = other.
max - constant
54 template <FloatType T>
57 .min = other.
min * constant,
58 .centre = other.
centre * constant,
59 .max = other.
max * constant
63 template <FloatType T>
66 .min = other.
min / constant,
67 .centre = other.
centre / constant,
68 .max = other.
max / constant
78 template <FloatType T>
Reciprocal(ReciprocalRange< T > dest)
Reciprocal(ReciprocalRange< T > src, ReciprocalRange< T > dest)
T operator()(T toMap) noexcept
Math helper functions and classes.
Definition marvin_Math.h:22
ReciprocalRange< T > operator/(const ReciprocalRange< T > &other, T constant)
Definition marvin_Reciprocal.h:64
ReciprocalRange< T > operator*(const ReciprocalRange< T > &other, T constant)
Definition marvin_Reciprocal.h:55
ReciprocalRange< T > operator-(const ReciprocalRange< T > &other, T constant)
Definition marvin_Reciprocal.h:46
ReciprocalRange< T > operator+(const ReciprocalRange< T > &other, T constant)
Definition marvin_Reciprocal.h:37
Convenience POD struct for representing a range used by marvin::math::ReciprocalRange.
Definition marvin_Reciprocal.h:19
T min
Definition marvin_Reciprocal.h:23
T centre
Definition marvin_Reciprocal.h:28
T max
Definition marvin_Reciprocal.h:33