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

luminous_intensity.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_UNITS_UNIT_SI_LUMINOUS_INTENSITY_HPP
10 #define EAGINE_UNITS_UNIT_SI_LUMINOUS_INTENSITY_HPP
11 
12 #include "common.hpp"
13 
14 namespace eagine::units {
15 namespace base {
16 
17 // candela
18 struct candela : unit<luminous_intensity, candela> {};
19 
20 } // namespace base
21 
22 template <>
23 struct name_of<base::candela> {
24  static constexpr const char mp_str[] = "candela";
25 };
26 
27 template <>
28 struct symbol_of<base::candela> {
29  static constexpr const char mp_str[] = "cd";
30 };
31 
32 // si::base_unit<luminous_intensity>
33 template <>
34 struct si::base_unit<base::luminous_intensity> : base::candela {};
35 
36 // candela
37 using candela = unit<luminous_intensity, si>;
38 
39 // derived
40 using kilocandela =
41  make_scaled_base_dim_unit_t<base::scaled_unit<scales::kilo, base::candela>, si>;
42 
43 } // namespace eagine::units
44 
45 #endif // EAGINE_UNITS_UNIT_SI_LUMINOUS_INTENSITY_HPP

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