OGLplus
(0.59.0)
a C++ wrapper for rendering APIs
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
Functions
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
Variables
Typedefs
a
b
c
d
e
g
h
i
k
l
m
n
o
p
r
s
t
u
v
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
v
Related Functions
o
Files
File List
File Members
All
Macros
Examples
eagine
units
common.hpp
Go to the documentation of this file.
1
9
#ifndef EAGINE_UNITS_COMMON_HPP
10
#define EAGINE_UNITS_COMMON_HPP
11
12
#include "
default.hpp
"
13
#include "
unit/si/angle.hpp
"
14
#include "
unit/si/temperature.hpp
"
15
#include "
unit/si/time.hpp
"
16
17
namespace
eagine::units {
18
namespace
scales {
19
20
struct
pi
;
21
22
template
<
int
I>
23
struct
constant;
24
25
template
<
typename
S1,
typename
S2>
26
struct
divided;
27
28
}
// namespace scales
29
30
namespace
base {
31
32
// dimensions
33
struct
time;
34
struct
angle;
35
struct
temperature;
36
37
// units
38
struct
radian;
39
40
}
// namespace base
41
42
// dimensions
43
using
time = dimension<base::time, 1>;
44
using
angle = dimension<base::angle, 1>;
45
using
temperature = dimension<base::temperature, 1>;
46
47
// units
48
using
second = unit<time, si>;
49
50
using
radian = unit<angle, si>;
51
using
degree = scaled_dim_unit<
52
angle,
53
bits::unit_scales<
54
bits::
55
uni_sca<base::radian, scales::divided<scales::pi, scales::constant<180>>>,
56
nothing_t>,
57
si>;
58
59
using
kelvin = unit<temperature, si>;
60
61
}
// namespace eagine::units
62
63
#endif // EAGINE_UNITS_COMMON_HPP
angle.hpp
temperature.hpp
eagine::math::pi
static constexpr const auto pi
The pi constant.
Definition:
constants.hpp:23
default.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).