Kanzi  3.9.9
Kanzi Engine C++ API
rectangle.hpp File Reference
#include "vector4.hpp"

Classes

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

Namespaces

 kanzi
 

Typedefs

typedef Rectangle< float > kanzi::RectangleFloat
 Float type rectangle. More...
 
typedef Rectangle< int > kanzi::RectangleInteger
 Integer type rectangle. More...
 

Functions

template<typename T >
Rectangle< T > kanzi::getUnion (const Rectangle< T > &rectangle1, const Rectangle< T > &rectangle2)
 Calculates union of the two rectangles. More...
 
template<typename T >
Rectangle< T > kanzi::intersection (const Rectangle< T > &rectangle1, const Rectangle< T > &rectangle2)
 Calculates intersection of the two rectangles. More...
 
template<typename T >
bool kanzi::overlaps (const Rectangle< T > &rectangle1, const Rectangle< T > &rectangle2)
 Checks if the two given rectangles overlap, at least partially. More...