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

magnetic_flux.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_UNITS_UNIT_SI_MAGNETIC_FLUX_HPP
10 #define EAGINE_UNITS_UNIT_SI_MAGNETIC_FLUX_HPP
11 
12 #include "../../dim/magnetic_flux.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 // weber
22 using weber = unit<magnetic_flux, si>;
23 
24 template <>
25 struct name_of<weber> {
26  static constexpr const char mp_str[] = "weber";
27 };
28 
29 template <>
30 struct symbol_of<weber> {
31  static constexpr const char mp_str[] = "Wb";
32 };
33 
34 // derived
35 using milliweber = make_scaled_unit_t<scales::milli, weber>;
36 using kiloweber = make_scaled_unit_t<scales::kilo, weber>;
37 // TODO
38 
39 } // namespace eagine::units
40 
41 #endif // EAGINE_UNITS_UNIT_SI_MAGNETIC_FLUX_HPP

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