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