13 Box(
double width = 1.,
86 double size_back = 10.,
106 double x = to.first - from.first;
107 double y = to.second - from.second;
112 double phi = acos(x/sqrt(x*x+y*y));
116 double r = sqrt(x*x+y*y);
124 double rx1 = from.first + x1 * cos(phi) - y1 * sin(phi);
125 double ry1 = from.second + x1 * sin(phi) + y1 * cos(phi);
127 double rx2 = from.first + x2 * cos(phi) - y2 * sin(phi);
128 double ry2 = from.second + x2 * sin(phi) + y2 * cos(phi);
Definition: Whiteboard.h:276
double m_width
Definition: Compounds.h:75
Arrow(double size_off=8., double size_back=10., double width=1., const color &color=color(0, 0, 0))
Definition: Compounds.h:85
color m_col
Definition: Compounds.h:147
void Draw(ns_whiteboard::whiteboard &board, const ns_whiteboard::xy_coords &from, const ns_whiteboard::xy_coords &to)
Definition: Compounds.h:22
Definition: Whiteboard.h:154
void Draw(ns_whiteboard::whiteboard &board, const ns_whiteboard::xy_coords &a, const ns_whiteboard::xy_coords &b, const ns_whiteboard::xy_coords &c, const ns_whiteboard::xy_coords &d)
Definition: Compounds.h:48
void Add(graphic *g)
Definition: Whiteboard.h:162
pair< double, double > xy_coords
Definition: Whiteboard.h:30
double m_size_back
Definition: Compounds.h:145
File holding the base drawing classes of the whiteboard.
void Draw(ns_whiteboard::whiteboard &board, const ns_whiteboard::xy_coords &from, const ns_whiteboard::xy_coords &to)
Definition: Compounds.h:98
Box(double width=1., const color &color=color(0, 0, 0))
Definition: Compounds.h:13
double m_width
Definition: Compounds.h:143
color m_col
Definition: Compounds.h:76
Definition: Compounds.h:10
Definition: Compounds.h:82
double m_size_off
Definition: Compounds.h:144