libosmscout  1.1.1
Public Member Functions | Public Attributes | List of all members
osmscout::Rectangle< T > Struct Template Reference

#include <libosmscout-map/include/osmscout/LabelLayouter.h>

Collaboration diagram for osmscout::Rectangle< T >:
Collaboration graph
[legend]

Public Member Functions

 Rectangle ()=default
 
 Rectangle (T x, T y, T width, T height)
 
Rectangle< T > & Set (T nx, T ny, T nw, T nh)
 
bool Intersects (const Rectangle< T > &other)
 

Public Attributes

x
 
y
 
width
 
height
 

Constructor & Destructor Documentation

◆ Rectangle() [1/2]

template<typename T>
osmscout::Rectangle< T >::Rectangle ( )
default

◆ Rectangle() [2/2]

template<typename T>
osmscout::Rectangle< T >::Rectangle ( x,
y,
width,
height 
)
inline

Member Function Documentation

◆ Intersects()

template<typename T>
bool osmscout::Rectangle< T >::Intersects ( const Rectangle< T > &  other)
inline

Test if this Rectangle intersects with another. It is using open interval, so if two rectangles are just touching each other, these don't intersects.

Parameters
other
Returns
true if intersects

◆ Set()

template<typename T>
Rectangle<T>& osmscout::Rectangle< T >::Set ( nx,
ny,
nw,
nh 
)
inline

Member Data Documentation

◆ height

template<typename T>
T osmscout::Rectangle< T >::height

◆ width

template<typename T>
T osmscout::Rectangle< T >::width

◆ x

template<typename T>
T osmscout::Rectangle< T >::x

◆ y

template<typename T>
T osmscout::Rectangle< T >::y

The documentation for this struct was generated from the following file: