OGLplus
(0.59.0)
a C++ wrapper for rendering APIs
eagine
units
unit
si
energy.hpp
Go to the documentation of this file.
1
9
#ifndef EAGINE_UNITS_UNIT_SI_ENERGY_HPP
10
#define EAGINE_UNITS_UNIT_SI_ENERGY_HPP
11
12
#include "../../dim/energy.hpp"
13
#include "
common.hpp
"
14
#include "
length.hpp
"
15
#include "
mass.hpp
"
16
#include "
time.hpp
"
17
18
namespace
eagine::units {
19
20
// joule
21
using
joule = unit<energy, si>;
22
23
template
<>
24
struct
name_of<joule> {
25
static
constexpr
const
char
mp_str[] =
"joule"
;
26
};
27
28
template
<>
29
struct
symbol_of<joule> {
30
static
constexpr
const
char
mp_str[] =
"J"
;
31
};
32
33
// derived
34
using
kilojoule = make_scaled_unit_t<scales::kilo, joule>;
35
using
megajoule = make_scaled_unit_t<scales::mega, joule>;
36
// TODO
37
38
}
// namespace eagine::units
39
40
#endif // EAGINE_UNITS_UNIT_SI_ENERGY_HPP
mass.hpp
length.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).