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

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

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