1#ifndef OSMSCOUT_UTIL_SCREENBOX_H
2#define OSMSCOUT_UTIL_SCREENBOX_H
40 Vertex2D minCoord=Vertex2D(0.0,0.0);
41 Vertex2D maxCoord=Vertex2D(0.0,0.0);
84 return minCoord.GetX();
89 return minCoord.GetY();
94 return maxCoord.GetX();
99 return maxCoord.GetY();
107 return maxCoord.GetX()-minCoord.GetX();
115 return maxCoord.GetY()-minCoord.GetY();
144 return {(minCoord.GetX()+maxCoord.GetX())/2,
145 (minCoord.GetY()+maxCoord.GetY())/2};
150 bool openInterval)
const;
#define OSMSCOUT_API
Definition CoreImportExport.h:45
double GetWidth() const
Definition ScreenBox.h:105
double GetHeight() const
Definition ScreenBox.h:113
ScreenBox Merge(const ScreenBox &other) const
bool Intersects(const ScreenBox &other) const
Vertex2D GetCenter() const
Definition ScreenBox.h:142
ScreenBox(ScreenBox &&other)=default
double GetMaxY() const
Definition ScreenBox.h:97
ScreenBox(const ScreenBox &other)=default
bool operator==(const ScreenBox &other) const
ScreenBox Resize(double offset) const
ScreenBox & operator=(ScreenBox &&other)=default
static const ScreenBox EMPTY
Definition ScreenBox.h:44
bool IsEmpty() const
Definition ScreenBox.h:133
ScreenBox & operator=(const ScreenBox &other)=default
bool Intersects(const ScreenBox &other, bool openInterval) const
double GetMaxX() const
Definition ScreenBox.h:92
ScreenBox(const Vertex2D &coordA, const Vertex2D &coordB)
double GetMinX() const
Definition ScreenBox.h:82
double GetSize() const
Definition ScreenBox.h:123
double GetMinY() const
Definition ScreenBox.h:87