|
| template<std::floating_point Val, typename... Dims> |
| constexpr UnitValue< Val, Units< Dims... > > | mtcore::units::operator* (Val lhs, const Units< Dims... > &) |
| | Multiply a number with units to get a unit value.
|
| |
| template<typename... Dims1, typename... Dims2> |
| constexpr auto | mtcore::units::operator* (const Units< Dims1... > &, const Units< Dims2... > &) |
| | Multiply units to combine them.
|
| |
| template<typename... Dims1, typename... Dims2> |
| constexpr auto | mtcore::units::operator/ (const Units< Dims1... > &, const Units< Dims2... > &) |
| | Divide units to combine them.
|
| |
| template<std::floating_point Val, typename... Dims> |
| constexpr auto | mtcore::units::operator/ (Val lhs, const Units< Dims... > &) |
| | Divide units with a number to get a unit value.
|
| |
| template<typename U1, typename Us1, typename U2, typename Us2> |
| constexpr auto | mtcore::units::operator* (const UnitValue< U1, Us1 > &lhs, const UnitValue< U2, Us2 > &rhs) |
| | Multiply unit values together.
|
| |
| template<typename U1, typename Us1, typename U2, typename Us2> |
| constexpr auto | mtcore::units::operator/ (const UnitValue< U1, Us1 > &lhs, const UnitValue< U2, Us2 > &rhs) |
| | Divide unit values.
|
| |
| template<std::floating_point I, typename U, typename Us> |
| constexpr auto | mtcore::units::operator/ (I value, UnitValue< U, Us > lhs) |
| | Divide a number with a unit value.
|
| |
| template<std::floating_point I, typename U, typename Us> |
| constexpr auto | mtcore::units::operator/ (UnitValue< U, Us > lhs, I value) |
| | Divide a unit value with a number.
|
| |
| template<std::integral I, typename U, typename Us> |
| constexpr auto | mtcore::units::operator/ (I value, const UnitValue< U, Us > &lhs) |
| | Divide a number with a unit value.
|
| |
| template<std::floating_point Val, typename U, typename Us> |
| constexpr UnitValue< U, Us > | mtcore::units::operator* (const UnitValue< U, Us > &lhs, Val rhs) |
| | Multiply a unit value with a number.
|
| |
| template<std::floating_point Val, typename U, typename Us> |
| constexpr UnitValue< Val, Us > | mtcore::units::operator* (Val lhs, const UnitValue< U, Us > &rhs) |
| | Multiply a unit value with a number.
|
| |
| template<typename U, typename Us, typename... Dims> |
| constexpr auto | mtcore::units::operator* (UnitValue< U, Us > lhs, const Units< Dims... > &u) |
| | Multiply a unit value with units to combine them.
|
| |
| template<typename U, typename Us, typename... Dims> |
| constexpr auto | mtcore::units::operator/ (UnitValue< U, Us > lhs, const Units< Dims... > &u) |
| | Divide a unit value with units to combine them.
|
| |