OGLplus  (0.59.0) a C++ wrapper for rendering APIs

inductance.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_UNITS_UNIT_SI_INDUCTANCE_HPP
10 #define EAGINE_UNITS_UNIT_SI_INDUCTANCE_HPP
11 
12 #include "../../dim/inductance.hpp"
13 #include "common.hpp"
14 #include "electric_current.hpp"
15 #include "length.hpp"
16 #include "mass.hpp"
17 #include "time.hpp"
18 
19 namespace eagine::units {
20 
21 // henry
22 using henry = unit<inductance, si>;
23 
24 template <>
25 struct name_of<henry> {
26  static constexpr const char mp_str[] = "henry";
27 };
28 
29 template <>
30 struct symbol_of<henry> {
31  static constexpr const char mp_str[] = "H";
32 };
33 
34 // derived
35 using millihenry = make_scaled_unit_t<scales::milli, henry>;
36 using kilohenry = make_scaled_unit_t<scales::kilo, henry>;
37 // TODO
38 
39 } // namespace eagine::units
40 
41 #endif // EAGINE_UNITS_UNIT_SI_INDUCTANCE_HPP

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).