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