Lines Matching defs:rx
369 rx,ry are the radii of the ellipse's axes
378 Geom::PathVector PrintMetafile::center_ellipse_as_SVG_PathV(Geom::Point ctr, double rx, double ry, double F)
385 x1 = ctr[X] + cos(F) * rx * cos(0) + sin(-F) * ry * sin(0);
386 y1 = ctr[Y] + sin(F) * rx * cos(0) + cos(F) * ry * sin(0);
387 x2 = ctr[X] + cos(F) * rx * cos(M_PI) + sin(-F) * ry * sin(M_PI);
388 y2 = ctr[Y] + sin(F) * rx * cos(M_PI) + cos(F) * ry * sin(M_PI);
391 sprintf(text, " M %f,%f A %f %f %f 0 0 %f %f A %f %f %f 0 0 %f %f z", x1, y1, rx, ry, F * 360. / (2.*M_PI), x2, y2, rx, ry, F * 360. / (2.*M_PI), x1, y1);
428 Geom::PathVector PrintMetafile::center_elliptical_hole_as_SVG_PathV(Geom::Point ctr, double rx, double ry, double F)
435 x1 = ctr[X] + cos(F) * rx * cos(0) + sin(-F) * ry * sin(0);
436 y1 = ctr[Y] + sin(F) * rx * cos(0) + cos(F) * ry * sin(0);
437 x2 = ctr[X] + cos(F) * rx * cos(M_PI) + sin(-F) * ry * sin(M_PI);
438 y2 = ctr[Y] + sin(F) * rx * cos(M_PI) + cos(F) * ry * sin(M_PI);
442 x1, y1, rx, ry, F * 360. / (2.*M_PI), x2, y2, rx, ry, F * 360. / (2.*M_PI), x1, y1);