|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file.
206 , family( family_value )
229 if(
tx != 0.0 ||
ty != 0.0 ) {
230 out <<
"translate( " <<
tx <<
", " <<
ty <<
" )";
246 if( cx != 0.0 || cy != 0.0 ) {
247 out <<
"rotate( " << a <<
", " << cx <<
", " << cy <<
" )";
249 out <<
"rotate( " << a <<
" )";
258 auto const sr = std::sin(r);
259 auto const cr = std::cos(r);
264 auto const nx = p.
x - cx;
265 auto const ny = p.
y - cy;
266 auto const rx = nx * cr - ny * sr;
267 auto const ry = nx * sr + ny * cr;
268 auto const fx = rx + cx;
269 auto const fy = ry + cy;
279 if( sx != 1.0 || sy != 1.0 ) {
281 out <<
"scale( " << sx <<
" )";
283 out <<
"scale( " << sx <<
", " << sy <<
" )";
300 out <<
"skewX( " << ax <<
" )";
318 out <<
"skewY( " << ay <<
" )";
335 if( a != 1.0 || b != 0.0 || c != 0.0 || d != 1.0 || e != 0.0 || f != 0.0 ) {
336 out <<
"matrix( " << a <<
", " << b <<
", " << c <<
", ";
337 out << d <<
", " << e <<
", " << f <<
" )";
344 p.
x * a + p.
y * c + e,
345 p.
x * b + p.
y * d + f
386 auto const tlx = std::min( std::initializer_list<double>{ tr_tl.x, tr_tr.x, tr_bl.x, tr_br.x });
387 auto const tly = std::min( std::initializer_list<double>{ tr_tl.y, tr_tr.y, tr_bl.y, tr_br.y });
388 auto const brx = std::max( std::initializer_list<double>{ tr_tl.x, tr_tr.x, tr_bl.x, tr_br.x });
389 auto const bry = std::max( std::initializer_list<double>{ tr_tl.y, tr_tr.y, tr_bl.y, tr_br.y });
397 out <<
" transform=\"";
SvgFill(Type type=Type::kColor)
@ kNone
Skip no whitespace. Thus, immediately treat the current input char.
std::vector< double > dash_array
SvgFont(double size=10, std::string const &family="Verdana")
Provides some commonly used string utility functions.
constexpr double PI
Make the world go round.
Interval< DataType, NumericalType, IntervalKind > join(Interval< DataType, NumericalType, IntervalKind > const &a, Interval< DataType, NumericalType, IntervalKind > const &b)
Creates a new Interval that contains both intervals and whatever is between.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
Color operators and functions.
SvgStroke(Type type=Type::kColor)
std::string svg_attribute(std::string const &name, T const &value, std::string const &unit="")
void write(std::ostream &out) const
void write(std::ostream &out) const
std::string color_to_hex(Color const &c, std::string const &prefix, bool uppercase, bool with_alpha)
Return a hex string representation of a Color in the format "#003366[ff]".
void write(std::ostream &out) const