Lines Matching refs:position
28 void common_output::dashed_circle(const position ¢, double rad, in dashed_circle()
63 void common_output::dotted_circle(const position ¢, double rad, in dotted_circle()
80 dot(cent + position(cos(ang), sin(ang))*rad, lt); in dotted_circle()
85 void common_output::ellipse_arc(const position ¢, in ellipse_arc()
86 const position &z0, const position &z1, in ellipse_arc()
92 position zml = (z0 + z1) / 2; in ellipse_arc()
96 position zm = position(dim.x * cos(psi), dim.y * sin(psi)); in ellipse_arc()
107 position M = position(e_2 * zm.x / a_2 * zm.x / a_2 * zm.x, in ellipse_arc()
112 position M0 = position(rho * cos(phi0), rho * sin(phi0)) + M; in ellipse_arc()
113 position M1 = position(rho * cos(phi1), rho * sin(phi1)) + M; in ellipse_arc()
126 void common_output::dashed_ellipse(const position ¢, const distance &dim, in dashed_ellipse()
150 position z = position(dim_x, 0); in dashed_ellipse()
151 position zdot = z; in dashed_ellipse()
155 position zold = z; in dashed_ellipse()
156 position zpre = zdot; in dashed_ellipse()
166 z = position(dim_x * cos(phi), dim_y * sin(phi)); in dashed_ellipse()
177 zdot = position(dim_x * cos(psi), dim_y * sin(psi)); in dashed_ellipse()
185 void common_output::dotted_ellipse(const position ¢, const distance &dim, in dotted_ellipse()
204 position z = position(dim_x, 0); in dotted_ellipse()
208 position zold = z; in dotted_ellipse()
218 z = position(dim_x * cos(phi), dim_y * sin(phi)); in dotted_ellipse()
225 position zdot = zold + (z - zold) * delta; in dotted_ellipse()
229 zdot = position(dim_x * cos(psi), dim_y * sin(psi)); in dotted_ellipse()
236 int compute_arc_center(const position &start, const position ¢, in compute_arc_center()
237 const position &end, position *result) in compute_arc_center()
252 void common_output::dashed_arc(const position &start, const position ¢, in dashed_arc()
253 const position &end, const line_type <) in dashed_arc()
256 position c; in dashed_arc()
283 void common_output::dotted_arc(const position &start, const position ¢, in dotted_arc()
284 const position &end, const line_type <) in dotted_arc()
287 position c; in dotted_arc()
305 dot(cent + position(cos(a), sin(a))*rad, lt); in dotted_arc()
310 void common_output::solid_arc(const position ¢, double rad, in solid_arc()
316 arc(cent + position(cos(start_angle), sin(start_angle))*rad, in solid_arc()
318 cent + position(cos(end_angle), sin(end_angle))*rad, in solid_arc()
323 void common_output::rounded_box(const position ¢, const distance &dim, in rounded_box()
346 void common_output::dashed_rounded_box(const position ¢, in dashed_rounded_box()
368 dash_arc(cent + position(dim.x/2.0 - rad, -dim.y/2.0 + rad), rad, in dashed_rounded_box()
370 dash_line(cent + position(dim.x/2.0, -dim.y/2.0 + rad), in dashed_rounded_box()
371 cent + position(dim.x/2.0, dim.y/2.0 - rad), in dashed_rounded_box()
373 dash_arc(cent + position(dim.x/2.0 - rad, dim.y/2.0 - rad), rad, in dashed_rounded_box()
377 dash_arc(cent + position(dim.x/2.0 - rad, dim.y/2.0 - rad), rad, in dashed_rounded_box()
379 dash_line(cent + position(dim.x/2.0 - rad, dim.y/2.0), in dashed_rounded_box()
380 cent + position(-dim.x/2.0 + rad, dim.y/2.0), in dashed_rounded_box()
382 dash_arc(cent + position(-dim.x/2.0 + rad, dim.y/2.0 - rad), rad, in dashed_rounded_box()
386 dash_arc(cent + position(-dim.x/2.0 + rad, dim.y/2.0 - rad), rad, in dashed_rounded_box()
388 dash_line(cent + position(-dim.x/2.0, dim.y/2.0 - rad), in dashed_rounded_box()
389 cent + position(-dim.x/2.0, -dim.y/2.0 + rad), in dashed_rounded_box()
391 dash_arc(cent + position(-dim.x/2.0 + rad, -dim.y/2.0 + rad), rad, in dashed_rounded_box()
395 dash_arc(cent + position(-dim.x/2.0 + rad, -dim.y/2.0 + rad), rad, in dashed_rounded_box()
397 dash_line(cent + position(-dim.x/2.0 + rad, -dim.y/2.0), in dashed_rounded_box()
398 cent + position(dim.x/2.0 - rad, -dim.y/2.0), in dashed_rounded_box()
400 dash_arc(cent + position(dim.x/2.0 - rad, -dim.y/2.0 + rad), rad, in dashed_rounded_box()
406 void common_output::dash_arc(const position ¢, double rad, in dash_arc()
445 void common_output::dash_line(const position &start, const position &end, in dash_line()
475 position p(start + dist*((pos + rem)/length)); in dash_line()
484 void common_output::dotted_rounded_box(const position ¢, in dotted_rounded_box()
505 dot_arc(cent + position(dim.x/2.0 - rad, -dim.y/2.0 + rad), rad, in dotted_rounded_box()
507 dot_line(cent + position(dim.x/2.0, -dim.y/2.0 + rad), in dotted_rounded_box()
508 cent + position(dim.x/2.0, dim.y/2.0 - rad), in dotted_rounded_box()
510 dot_arc(cent + position(dim.x/2.0 - rad, dim.y/2.0 - rad), rad, in dotted_rounded_box()
514 dot_arc(cent + position(dim.x/2.0 - rad, dim.y/2.0 - rad), rad, in dotted_rounded_box()
516 dot_line(cent + position(dim.x/2.0 - rad, dim.y/2.0), in dotted_rounded_box()
517 cent + position(-dim.x/2.0 + rad, dim.y/2.0), in dotted_rounded_box()
519 dot_arc(cent + position(-dim.x/2.0 + rad, dim.y/2.0 - rad), rad, in dotted_rounded_box()
523 dot_arc(cent + position(-dim.x/2.0 + rad, dim.y/2.0 - rad), rad, in dotted_rounded_box()
525 dot_line(cent + position(-dim.x/2.0, dim.y/2.0 - rad), in dotted_rounded_box()
526 cent + position(-dim.x/2.0, -dim.y/2.0 + rad), in dotted_rounded_box()
528 dot_arc(cent + position(-dim.x/2.0 + rad, -dim.y/2.0 + rad), rad, in dotted_rounded_box()
532 dot_arc(cent + position(-dim.x/2.0 + rad, -dim.y/2.0 + rad), rad, in dotted_rounded_box()
534 dot_line(cent + position(-dim.x/2.0 + rad, -dim.y/2.0), in dotted_rounded_box()
535 cent + position(dim.x/2.0 - rad, -dim.y/2.0), in dotted_rounded_box()
537 dot_arc(cent + position(dim.x/2.0 - rad, -dim.y/2.0 + rad), rad, in dotted_rounded_box()
543 void common_output::dot_arc(const position ¢, double rad, in dot_arc()
553 dot(cent + position(cos(ang), sin(ang))*rad, lt); in dot_arc()
569 void common_output::dot_line(const position &start, const position &end, in dot_line()
593 void common_output::solid_rounded_box(const position ¢, in solid_rounded_box()
597 position tem = cent - dim/2.0; in solid_rounded_box()
598 arc(tem + position(0.0, rad), in solid_rounded_box()
599 tem + position(rad, rad), in solid_rounded_box()
600 tem + position(rad, 0.0), in solid_rounded_box()
602 tem = cent + position(-dim.x/2.0, dim.y/2.0); in solid_rounded_box()
603 arc(tem + position(rad, 0.0), in solid_rounded_box()
604 tem + position(rad, -rad), in solid_rounded_box()
605 tem + position(0.0, -rad), in solid_rounded_box()
608 arc(tem + position(0.0, -rad), in solid_rounded_box()
609 tem + position(-rad, -rad), in solid_rounded_box()
610 tem + position(-rad, 0.0), in solid_rounded_box()
612 tem = cent + position(dim.x/2.0, -dim.y/2.0); in solid_rounded_box()
613 arc(tem + position(-rad, 0.0), in solid_rounded_box()
614 tem + position(-rad, rad), in solid_rounded_box()
615 tem + position(0.0, rad), in solid_rounded_box()
617 position end; in solid_rounded_box()
618 end = cent + position(-dim.x/2.0, dim.y/2.0 - rad); in solid_rounded_box()
619 line(cent - dim/2.0 + position(0.0, rad), &end, 1, lt); in solid_rounded_box()
620 end = cent + position(dim.x/2.0 - rad, dim.y/2.0); in solid_rounded_box()
621 line(cent + position(-dim.x/2.0 + rad, dim.y/2.0), &end, 1, lt); in solid_rounded_box()
622 end = cent + position(dim.x/2.0, -dim.y/2.0 + rad); in solid_rounded_box()
623 line(cent + position(dim.x/2.0, dim.y/2.0 - rad), &end, 1, lt); in solid_rounded_box()
624 end = cent + position(-dim.x/2.0 + rad, -dim.y/2.0); in solid_rounded_box()
625 line(cent + position(dim.x/2.0 - rad, -dim.y/2.0), &end, 1, lt); in solid_rounded_box()
628 void common_output::filled_rounded_box(const position ¢, in filled_rounded_box()
634 circle(cent + position(dim.x/2.0 - rad, dim.y/2.0 - rad), rad, ilt, fill); in filled_rounded_box()
635 circle(cent + position(-dim.x/2.0 + rad, dim.y/2.0 - rad), rad, ilt, fill); in filled_rounded_box()
636 circle(cent + position(-dim.x/2.0 + rad, -dim.y/2.0 + rad), rad, ilt, fill); in filled_rounded_box()
637 circle(cent + position(dim.x/2.0 - rad, -dim.y/2.0 + rad), rad, ilt, fill); in filled_rounded_box()
638 position vec[4]; in filled_rounded_box()
639 vec[0] = cent + position(dim.x/2.0, dim.y/2.0 - rad); in filled_rounded_box()
640 vec[1] = cent + position(-dim.x/2.0, dim.y/2.0 - rad); in filled_rounded_box()
641 vec[2] = cent + position(-dim.x/2.0, -dim.y/2.0 + rad); in filled_rounded_box()
642 vec[3] = cent + position(dim.x/2.0, -dim.y/2.0 + rad); in filled_rounded_box()
644 vec[0] = cent + position(dim.x/2.0 - rad, dim.y/2.0); in filled_rounded_box()
645 vec[1] = cent + position(-dim.x/2.0 + rad, dim.y/2.0); in filled_rounded_box()
646 vec[2] = cent + position(-dim.x/2.0 + rad, -dim.y/2.0); in filled_rounded_box()
647 vec[3] = cent + position(dim.x/2.0 - rad, -dim.y/2.0); in filled_rounded_box()