double d = line.getDistanceToPoint(mouse);
ratio = d / (line.getLength() / 2);
RS_EllipseData ed(center, major, ratio, 0.0, 2 * M_PI, false);
double d = line.getDistanceToPoint(mouse);
ratio = d / (line.getLength() / 2);
RS_EllipseData ed(center, major, ratio, 0.0, 2 * M_PI, false);