#include "point.h" // set defaults point::point(const coordsys& s, const coordinate& _p):drawable(s),p(_p) { } void point::draw(canvas& C) { coordsys paper(0,0,C.width(),C.height()); coordinate gridp,pr=p; // pr = rotated p if (rotate) { pr = system.rotate(p,rotation_center,rotation_angle); } gridp = paper.map(system,pr); // obtain p on the paper C.draw_point(round(gridp.x()),round(gridp.y()),pen_color,id); }