Lines Matching defs:Rect
91 class Rect
99 Rect() {}
101 Rect(Interval const &a, Interval const &b) : Base(a,b) {}
103 Rect(Point const &a, Point const &b) : Base(a,b) {}
104 Rect(Coord x0, Coord y0, Coord x1, Coord y1) : Base(x0, y0, x1, y1) {}
105 Rect(Base const &b) : Base(b) {}
106 Rect(IntRect const &ir) : Base(ir.min(), ir.max()) {}
124 bool interiorIntersects(Rect const &r) const {
133 bool interiorContains(Rect const &r) const {
160 Affine transformTo(Rect const &viewport, Aspect const &aspect = Aspect()) const;
165 Rect &operator*=(Affine const &m);
169 bool operator==(Rect const &other) const {
185 OptRect(Rect const &a) : Base(a) {}
191 OptRect(IntRect const &r) : Base(Rect(r)) {}
193 if (r) *this = Rect(*r);
196 Affine transformTo(Rect const &viewport, Aspect const &aspect = Aspect()) {
206 bool operator==(Rect const &other) const {
211 Coord distanceSq(Point const &p, Rect const &rect);
212 Coord distance(Point const &p, Rect const &rect);
218 inline bool Rect::interiorContains(OptRect const &r) const {
219 return !r || interiorContains(static_cast<Rect const &>(*r));
223 inline OptRect operator&(Rect const &a, Rect const &b) {
228 inline OptRect intersect(Rect const &a, Rect const &b) {
234 inline Rect unify(Rect const &a, Rect const &b) {
243 inline Rect union_list(std::vector<Rect> const &r) {
244 if(r.empty()) return Rect(Interval(0,0), Interval(0,0));
245 Rect ret = r[0];