|
| | PixRectangle (const Point2D< T > &tl, const Point2D< T > &br) |
| |
| | PixRectangle (const Point2D< T > &tl, const Size2D< T > &sz) |
| |
| | PixRectangle (const Rectangle< T > &) |
| |
| | PixRectangle (T l=0, T t=0, T r=0, T b=0) |
| |
| bool | contains (const PixRectangle< T > &) const |
| |
| bool | contains (const Point2D< T > &) const |
| |
| PixRectangle< T > | grownBy (double sidesincreasebyfactor=1) const |
| |
| bool | isInside (const PixRectangle< T > &) const |
| |
| bool | isInside (const Point2D< T > &) const |
| |
| bool | isOnSide (const Point2D< T > &) const |
| |
| bool | isOutside (const Point2D< T > &) const |
| |
| | Rectangle (const Point2D< T > &tl, const Point2D< T > &br) |
| |
| | Rectangle (const Point2D< T > &tl, const Size2D< T > &sz) |
| |
| | Rectangle (T l=0, T t=0, T r=0, T b=0) |
| |
| T | bottom () const |
| |
| Point2D< T > | bottomLeft () const |
| |
| Point2D< T > | bottomRight () const |
| |
| Point2D< T > | centre () const |
| |
| bool | checkCorners (bool leftislow=true, bool topislow=true) const |
| |
| T | height () const |
| |
| void | include (const Point2D< T > &) |
| |
| void | include (const Rectangle< T > &) |
| |
| bool | isDefined () const |
| |
| T | left () const |
| |
| void | limitTo (const Rectangle< T > &) |
| |
| Point2D< T > | moveInside (const Point2D< T > &) const |
| |
| bool | operator!= (const Rectangle< T > &) const |
| |
| Rectangle< T > & | operator+= (const Point2D< T > &) |
| |
| Rectangle< T > & | operator+= (const Size2D< T > &) |
| |
| Rectangle< T > & | operator-= (const Point2D< T > &) |
| |
| Rectangle< T > & | operator-= (const Size2D< T > &) |
| |
| bool | operator== (const Rectangle< T > &) const |
| |
| bool | operator> (const Rectangle< T > &) const |
| |
| bool | revX () const |
| |
| bool | revY () const |
| |
| T | right () const |
| |
| void | setBottom (T val) |
| |
| void | setBottomLeft (Point2D< T >) |
| |
| void | setBottomRight (Point2D< T >) |
| |
| void | setLeft (T val) |
| |
| void | setLeftRight (const Interval< T > &) |
| |
| void | setRight (T val) |
| |
| void | setTop (T val) |
| |
| void | setTopBottom (const Interval< T > &) |
| |
| void | setTopLeft (Point2D< T >) |
| |
| void | setTopRight (Point2D< T >) |
| |
| Size2D< T > | size () const |
| |
| void | sortCorners (bool leftislow=true, bool topislow=true) |
| |
| void | swapHor () |
| |
| void | swapVer () |
| |
| T | top () const |
| |
| Point2D< T > | topLeft () const |
| |
| Point2D< T > | topRight () const |
| |
| void | translate (const Point2D< T > &) |
| |
| T | width () const |
| |
| void | zero () |
| |
template<class T>
class Geom::PixRectangle< T >
Integer rectangle class.
The difference with the floating point type rectangle is in range handling. In the float world, everything must be epsiloned. Integer rectangles are more straightforward.
<>