nr-rect-l.h revision 1a37ce4a40095c20d83ed6ab3dce34f53bac1b65
#ifndef SEEN_NR_RECT_L_H
#define SEEN_NR_RECT_L_H
#include <libnr/nr-i-coord.h>
#include <libnr/nr-maybe.h>
#include <libnr/nr-point-l.h>
struct NRRectL {
};
/** as not all Rects are representable by IRects this gives the smallest IRect that contains
* r. */
}
/** returns a vector from min to max. */
IPoint dimensions() const;
/** does this rectangle have zero area? */
bool isEmpty() const {
}
bool intersects(const IRect &r) const {
return intersects<X>(r) && intersects<Y>(r);
}
}
}
}
switch (axis) {
case X: return extent<X>();
case Y: return extent<Y>();
};
}
switch (i) {
case 0: return extent<X>();
case 1: return extent<Y>();
};
}
/** Translates the rectangle by p. */
/** Makes this rectangle large enough to include the point p. */
/** Makes this rectangle large enough to include the rectangle r. */
/** Returns the set of points shared by both rectangles. */
/** Returns the smallest rectangle that encloses both rectangles. */
}
}
IRect() {}
}
bool isEmpty() const {
}
bool intersects(const IRect &r) const {
}
}
}
};
} // namespace NR
#endif /* !SEEN_NR_RECT_L_H */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :