A library for working with phylogenetic and population genetic data.
v0.32.0
SvgTransform::Rotate Struct Reference

#include <genesis/utils/formats/svg/attributes.hpp>

Detailed Description

Definition at line 298 of file attributes.hpp.

Public Member Functions

 Rotate ()=default
 
 Rotate (double angle)
 Rotation, in degrees. More...
 
 Rotate (double angle, double cx, double cy)
 Rotation, in degrees, around a given offset point. More...
 
 Rotate (double angle, SvgPoint offset)
 Rotation, in degrees, around a given offset point. More...
 
 Rotate (Rotate &&)=default
 
 Rotate (Rotate const &)=default
 
 ~Rotate ()=default
 
SvgPoint apply (SvgPoint const &p) const
 
Rotateoperator= (Rotate &&)=default
 
Rotateoperator= (Rotate const &)=default
 
void write (std::ostream &out) const
 

Public Attributes

double a = 0.0
 
double cx = 0.0
 
double cy = 0.0
 

Constructor & Destructor Documentation

◆ Rotate() [1/6]

Rotate ( )
default

◆ Rotate() [2/6]

Rotate ( double  angle)
inline

Rotation, in degrees.

Definition at line 311 of file attributes.hpp.

◆ Rotate() [3/6]

Rotate ( double  angle,
double  cx,
double  cy 
)
inline

Rotation, in degrees, around a given offset point.

Definition at line 318 of file attributes.hpp.

◆ Rotate() [4/6]

Rotate ( double  angle,
SvgPoint  offset 
)
inline

Rotation, in degrees, around a given offset point.

Definition at line 327 of file attributes.hpp.

◆ ~Rotate()

~Rotate ( )
default

◆ Rotate() [5/6]

Rotate ( Rotate const &  )
default

◆ Rotate() [6/6]

Rotate ( Rotate &&  )
default

Member Function Documentation

◆ apply()

SvgPoint apply ( SvgPoint const &  p) const

Definition at line 254 of file attributes.cpp.

◆ operator=() [1/2]

Rotate& operator= ( Rotate &&  )
default

◆ operator=() [2/2]

Rotate& operator= ( Rotate const &  )
default

◆ write()

void write ( std::ostream &  out) const

Definition at line 243 of file attributes.cpp.

Member Data Documentation

◆ a

double a = 0.0

Definition at line 350 of file attributes.hpp.

◆ cx

double cx = 0.0

Definition at line 351 of file attributes.hpp.

◆ cy

double cy = 0.0

Definition at line 352 of file attributes.hpp.


The documentation for this struct was generated from the following files: