Kanzi 3.9.10
rectangle.hpp File Reference
#include "vector4.hpp"

Classes

class  kanzi::Rectangle< T >
 2-dimensional integer rectangle. More...
 

Namespaces

namespace  kanzi
 

Typedefs

typedef Rectangle< floatkanzi::RectangleFloat
 Float type rectangle.
 
typedef Rectangle< intkanzi::RectangleInteger
 Integer type rectangle.
 

Functions

template<typename T >
Rectangle< Tkanzi::getUnion (const Rectangle< T > &rectangle1, const Rectangle< T > &rectangle2)
 Calculates union of the two rectangles.
 
template<typename T >
Rectangle< Tkanzi::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.