Lines Matching refs:cent
663 position cent; member in rectangle_object
669 position origin() { return cent; } in origin()
670 position center() { return cent; } in center()
671 position north() { return position(cent.x, cent.y + dim.y/2.0); } in north()
672 position south() { return position(cent.x, cent.y - dim.y/2.0); } in south()
673 position east() { return position(cent.x + dim.x/2.0, cent.y); } in east()
674 position west() { return position(cent.x - dim.x/2.0, cent.y); } in west()
675 position north_east() { return position(cent.x + dim.x/2.0, cent.y + dim.y/2.0); } in north_east()
676 position north_west() { return position(cent.x - dim.x/2.0, cent.y + dim.y/2.0); } in north_west()
677 position south_east() { return position(cent.x + dim.x/2.0, cent.y - dim.y/2.0); } in south_east()
678 position south_west() { return position(cent.x - dim.x/2.0, cent.y - dim.y/2.0); } in south_west()
691 p->encompass(cent - dim/2.0); in update_bounding_box()
692 p->encompass(cent + dim/2.0); in update_bounding_box()
697 cent += a; in move_by()
749 return position(cent.x + dim.x/2.0 - CHOP_FACTOR*xrad, in north_east()
750 cent.y + dim.y/2.0 - CHOP_FACTOR*yrad); in north_east()
755 return position(cent.x - dim.x/2.0 + CHOP_FACTOR*xrad, in north_west()
756 cent.y + dim.y/2.0 - CHOP_FACTOR*yrad); in north_west()
761 return position(cent.x + dim.x/2.0 - CHOP_FACTOR*xrad, in south_east()
762 cent.y - dim.y/2.0 + CHOP_FACTOR*yrad); in south_east()
767 return position(cent.x - dim.x/2.0 + CHOP_FACTOR*xrad, in south_west()
768 cent.y - dim.y/2.0 + CHOP_FACTOR*yrad); in south_west()
779 vec[0] = cent + position(dim2.x, -dim2.y); in print()
780 vec[1] = cent + position(dim2.x, dim2.y); in print()
781 vec[2] = cent + position(-dim2.x, dim2.y); in print()
782 vec[3] = cent + position(-dim2.x, -dim2.y); in print()
787 out->rounded_box(cent, abs_dim, fabs(xrad), lt, fill); in print()
929 cent += a; in move_by()
1007 position north_east() { return position(cent.x + dim.x/(M_SQRT2*2.0), in north_east()
1008 cent.y + dim.y/(M_SQRT2*2.0)); } in north_east()
1009 position north_west() { return position(cent.x - dim.x/(M_SQRT2*2.0), in north_west()
1010 cent.y + dim.y/(M_SQRT2*2.0)); } in north_west()
1011 position south_east() { return position(cent.x + dim.x/(M_SQRT2*2.0), in south_east()
1012 cent.y - dim.y/(M_SQRT2*2.0)); } in south_east()
1013 position south_west() { return position(cent.x - dim.x/(M_SQRT2*2.0), in south_west()
1014 cent.y - dim.y/(M_SQRT2*2.0)); } in south_west()
1030 out->ellipse(cent, dim, lt, fill); in print()
1079 out->circle(cent, dim.x/2.0, lt, fill); in print()
1516 position cent; member in arc_object
1520 position origin() { return cent; } in origin()
1521 position center() { return cent; } in center()
1539 : linear_object(s, e), clockwise(cw), cent(c) in arc_object()
1547 cent += pos; in move_by()
1554 position result(cent); in north()
1561 position result(cent); in south()
1568 position result(cent); in east()
1575 position result(cent); in west()
1582 position result(cent); in north_east()
1590 position result(cent); in north_west()
1598 position result(cent); in south_east()
1606 position result(cent); in south_west()
1631 b = strt - cent; in print()
1633 b.x*sin(theta) + b.y*cos(theta)) + cent; in print()
1646 b = strt - cent; in print()
1648 b.x*sin(theta) + b.y*cos(theta)) + cent; in print()
1658 b = en - cent; in print()
1660 b.x*sin(theta) + b.y*cos(theta)) + cent; in print()
1673 b = en - cent; in print()
1675 b.x*sin(theta) + b.y*cos(theta)) + cent; in print()
1681 out->arc(sp, cent, ep, lt); in print()
1694 position start_offset = strt - cent; in update_bounding_box()
1697 position end_offset = en - cent; in update_bounding_box()
1728 p->encompass(cent + offset); in update_bounding_box()