scifir-units
2.0.0
scifir-units is a library of units of measurement, angles, coordinates, fields, and related data, all lightweight, that help in the development of scientific software and scientific machines
Loading...
Searching...
No Matches
special_units
color.cpp
Go to the documentation of this file.
1
#include "
./color.hpp
"
2
3
using namespace
std;
4
5
namespace
scifir
6
{
7
color::color
() : red(),blue(),green(),alpha()
8
{
9
}
10
11
color::color
(
int
new_red
,
int
new_green
,
int
new_blue
,
int
new_alpha
) : red(
new_red
),blue(
new_blue
),green(
new_green
),alpha(
new_alpha
)
12
{
13
}
14
}
15
16
ostream&
operator <<
(ostream& os,
const
scifir::color
& x)
17
{
18
return
os <<
"color("
<< x.
get_red
() <<
","
<< x.
get_green
() <<
","
<< x.
get_blue
() <<
","
<< x.
get_alpha
() <<
")"
;
19
}
scifir::color
Definition
color.hpp:12
scifir::color::get_green
const int & get_green() const
Definition
color.hpp:22
scifir::color::get_alpha
const int & get_alpha() const
Definition
color.hpp:32
scifir::color::get_blue
const int & get_blue() const
Definition
color.hpp:27
scifir::color::color
color()
Definition
color.cpp:7
scifir::color::get_red
const int & get_red() const
Definition
color.hpp:17
scifir::coordinates_1d
Definition
coordinates_1d.hpp:18
operator<<
ostream & operator<<(ostream &os, const scifir::color &x)
Definition
color.cpp:16
color.hpp
scifir
The namespace scifir contains all scifir-units, excepting the string literals, which are outside.
Definition
address.cpp:6
Generated by
1.9.8