Integer rectangle class. More...
Public Member Functions | |
| PixRectangle (T l=0, T t=0, T r=0, T b=0) | |
| PixRectangle (const Point2D< T > &tl, const Point2D< T > &br) | |
| PixRectangle (const Point2D< T > &tl, const Size2D< T > &sz) | |
| PixRectangle (const Rectangle< T > &) | |
| bool | isInside (const Point2D< T > &) const |
| bool | isOutside (const Point2D< T > &) const |
| bool | isOnSide (const Point2D< T > &) const |
| bool | contains (const Point2D< T > &) const |
| bool | contains (const PixRectangle< T > &) const |
| bool | isInside (const PixRectangle< T > &) const |
| PixRectangle< T > | grownBy (double sidesincreasebyfactor=1) const |
Protected Member Functions | |
| bool | xOutside (T) const |
| bool | yOutside (T) const |
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.
| Geom::PixRectangle< T >::PixRectangle | ( | T | l = 0, |
|
| T | t = 0, |
|||
| T | r = 0, |
|||
| T | b = 0 | |||
| ) |
| Geom::PixRectangle< T >::PixRectangle | ( | const Point2D< T > & | tl, | |
| const Point2D< T > & | br | |||
| ) |
| Geom::PixRectangle< T >::PixRectangle | ( | const Point2D< T > & | tl, | |
| const Size2D< T > & | sz | |||
| ) |
| Geom::PixRectangle< T >::PixRectangle | ( | const Rectangle< T > & | r | ) |
| bool Geom::PixRectangle< T >::contains | ( | const Point2D< T > & | p | ) | const [inline] |
| bool Geom::PixRectangle< T >::contains | ( | const PixRectangle< T > & | other | ) | const [inline] |
| PixRectangle< T > Geom::PixRectangle< T >::grownBy | ( | double | sidesincreasebyfactor = 1 |
) | const [inline] |
| bool Geom::PixRectangle< T >::isInside | ( | const Point2D< T > & | p | ) | const [inline] |
| bool Geom::PixRectangle< T >::isInside | ( | const PixRectangle< T > & | other | ) | const [inline] |
| bool Geom::PixRectangle< T >::isOnSide | ( | const Point2D< T > & | pt | ) | const [inline] |
| bool Geom::PixRectangle< T >::isOutside | ( | const Point2D< T > & | p | ) | const [inline] |
| bool Geom::PixRectangle< T >::xOutside | ( | T | x | ) | const [inline, protected] |
| bool Geom::PixRectangle< T >::yOutside | ( | T | y | ) | const [inline, protected] |
1.7.1