#include "vector4.hpp"
Classes | |
class | kanzi::Rectangle< T > |
2-dimensional integer rectangle. More... | |
Namespaces | |
namespace | kanzi |
Typedefs | |
typedef Rectangle< float > | kanzi::RectangleFloat |
Float type rectangle. | |
typedef Rectangle< int > | kanzi::RectangleInteger |
Integer type rectangle. | |
Functions | |
template<typename T > | |
Rectangle< T > | kanzi::getUnion (const Rectangle< T > &rectangle1, const Rectangle< T > &rectangle2) |
Calculates union of the two rectangles. | |
template<typename T > | |
Rectangle< T > | kanzi::intersection (const Rectangle< T > &rectangle1, const Rectangle< T > &rectangle2) |
Calculates intersection of the two rectangles. | |
template<typename T > | |
bool | kanzi::overlaps (const Rectangle< T > &rectangle1, const Rectangle< T > &rectangle2) |
Checks if the two given rectangles overlap, at least partially. | |