#include <krmath.h>
Public Methods | |
T | Width () const |
width of the rectangle. | |
T | Height () const |
height of the rectangle. | |
void | Set (T _xmin, T _ymin, T _xmax, T _ymax) |
Initialize. Convenience function. | |
bool | IsValid () const |
Return true if this is potentially a valid rectangle. | |
bool | Intersect (const KrTRect< T > &rect) const |
Return true if the rectangles intersect. | |
bool | HasInside (const KrTRect< T > &rect) const |
Return true if 'rect' is inside this. | |
void | DoUnion (const KrTRect< T > &rect) |
Merge the rect into this. | |
void | DoIntersection (const KrTRect< T > &rect) |
Turn this into the intersection. | |
Public Attributes | |
T | xmin |
the lower x (inclusive). | |
T | ymin |
the lower y (inclusive). | |
T | xmax |
the upper x (inclusive). | |
T | ymax |
the upper y (inclusive). |