Lines Matching defs:OptRect
136 inline bool interiorContains(OptRect const &r) const;
179 class OptRect
184 OptRect() : Base() {}
185 OptRect(Rect const &a) : Base(a) {}
186 OptRect(Point const &a, Point const &b) : Base(a, b) {}
187 OptRect(Coord x0, Coord y0, Coord x1, Coord y1) : Base(x0, y0, x1, y1) {}
188 OptRect(OptInterval const &x_int, OptInterval const &y_int) : Base(x_int, y_int) {}
189 OptRect(Base const &b) : Base(b) {}
191 OptRect(IntRect const &r) : Base(Rect(r)) {}
192 OptRect(OptIntRect const &r) : Base() {
203 bool operator==(OptRect const &other) const {
214 Coord distanceSq(Point const &p, OptRect const &rect);
216 Coord distance(Point const &p, OptRect const &rect);
218 inline bool Rect::interiorContains(OptRect const &r) const {
223 inline OptRect operator&(Rect const &a, Rect const &b) {
224 OptRect ret(a);
228 inline OptRect intersect(Rect const &a, Rect const &b) {
231 inline OptRect intersect(OptRect const &a, OptRect const &b) {
237 inline OptRect unify(OptRect const &a, OptRect const &b) {
242 * @deprecated Use OptRect::from_range instead */