Lines Matching defs:dim

72   distance dim = ur - ll;
76 if (dim.x == 0.0)
79 sc = dim.x/desired_width;
82 if (dim.y == 0.0)
85 double tem = dim.y/desired_height;
95 distance sdim = dim/sc;
102 double xscale = dim.x/max_width;
103 double yscale = dim.y/max_height;
662 position dim;
665 double width() { return dim.x; }
666 double height() { return dim.y; }
669 position north() { return position(cent.x, cent.y + dim.y/2.0); }
670 position south() { return position(cent.x, cent.y - dim.y/2.0); }
671 position east() { return position(cent.x + dim.x/2.0, cent.y); }
672 position west() { return position(cent.x - dim.x/2.0, cent.y); }
673 position north_east() { return position(cent.x + dim.x/2.0, cent.y + dim.y/2.0); }
674 position north_west() { return position(cent.x - dim.x/2.0, cent.y + dim.y/2.0); }
675 position south_east() { return position(cent.x + dim.x/2.0, cent.y - dim.y/2.0); }
676 position south_west() { return position(cent.x - dim.x/2.0, cent.y - dim.y/2.0); }
683 : dim(d)
689 p->encompass(cent - dim/2.0);
690 p->encompass(cent + dim/2.0);
739 : closed_object(pos), xrad(dim.x > 0 ? r : -r), yrad(dim.y > 0 ? r : -r)
747 return position(cent.x + dim.x/2.0 - CHOP_FACTOR*xrad,
748 cent.y + dim.y/2.0 - CHOP_FACTOR*yrad);
753 return position(cent.x - dim.x/2.0 + CHOP_FACTOR*xrad,
754 cent.y + dim.y/2.0 - CHOP_FACTOR*yrad);
759 return position(cent.x + dim.x/2.0 - CHOP_FACTOR*xrad,
760 cent.y - dim.y/2.0 + CHOP_FACTOR*yrad);
765 return position(cent.x - dim.x/2.0 + CHOP_FACTOR*xrad,
766 cent.y - dim.y/2.0 + CHOP_FACTOR*yrad);
775 distance dim2 = dim/2.0;
784 distance abs_dim(fabs(dim.x), fabs(dim.y));
949 position dim;
955 dim = bb.ur - bb.ll;
958 dim.x = width;
960 dim.y = height;
961 block_object *block = new block_object(dim, oblist, tbl);
1005 position north_east() { return position(cent.x + dim.x/(M_SQRT2*2.0),
1006 cent.y + dim.y/(M_SQRT2*2.0)); }
1007 position north_west() { return position(cent.x - dim.x/(M_SQRT2*2.0),
1008 cent.y + dim.y/(M_SQRT2*2.0)); }
1009 position south_east() { return position(cent.x + dim.x/(M_SQRT2*2.0),
1010 cent.y - dim.y/(M_SQRT2*2.0)); }
1011 position south_west() { return position(cent.x - dim.x/(M_SQRT2*2.0),
1012 cent.y - dim.y/(M_SQRT2*2.0)); }
1013 double radius() { return dim.x/2.0; }
1028 out->ellipse(cent, dim, lt, fill);
1077 out->circle(cent, dim.x/2.0, lt, fill);