|
| PosRectangle (Point2D< T > tl, Point2D< T > br) |
|
| PosRectangle (T l=0, T t=0, T r=0, T b=0) |
|
bool | contains (const Point2D< T > &p, T eps) const |
|
bool | contains (const PosRectangle< T > &other, T eps) const |
|
PosRectangle< T > | grownBy (T sidesincreasebyfactor=1) const |
|
bool | isInside (const Point2D< T > &, T eps) const |
|
bool | isInside (const PosRectangle< T > &other, T eps) const |
|
bool | isOnSide (const Point2D< T > &p, T eps) const |
|
bool | isOutside (const Point2D< T > &p, T eps) const |
|
template<class TT > |
PosRectangle< T > | scale (TT xx, TT yy) 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::PosRectangle< T >
Floating-point rectangle class.
The difference with the integer type rectangle is in range handling. In the float world, everything must be epsiloned. with inside and outside.
<>