OGLplus
(0.59.0)
a C++ wrapper for rendering APIs
eagine
units
unit
si
electric_charge.hpp
Go to the documentation of this file.
1
9
#ifndef EAGINE_UNITS_UNIT_SI_ELECTRIC_CHARGE_HPP
10
#define EAGINE_UNITS_UNIT_SI_ELECTRIC_CHARGE_HPP
11
12
#include "../../dim/electric_charge.hpp"
13
#include "
common.hpp
"
14
#include "
electric_current.hpp
"
15
#include "
time.hpp
"
16
17
namespace
eagine::units {
18
19
// coulomb
20
using
coulomb = unit<electric_charge, si>;
21
22
template
<>
23
struct
name_of<coulomb> {
24
static
constexpr
const
char
mp_str[] =
"coulomb"
;
25
};
26
27
template
<>
28
struct
symbol_of<coulomb> {
29
static
constexpr
const
char
mp_str[] =
"C"
;
30
};
31
32
// derived
33
using
millicoulomb = make_scaled_unit_t<scales::milli, coulomb>;
34
using
kilocoulomb = make_scaled_unit_t<scales::kilo, coulomb>;
35
// TODO
36
37
}
// namespace eagine::units
38
39
#endif // EAGINE_UNITS_UNIT_SI_ELECTRIC_CHARGE_HPP
electric_current.hpp
common.hpp
time.hpp
Copyright © 2015-2021
Matúš Chochlík
.
<
chochlik -at -gmail.com
>
Documentation generated on Tue Apr 13 2021 by
Doxygen
(version 1.8.17).