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

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

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