10#define TRGArea2D_FLAG_
12#include "trg/trg/Point2D.h"
52 if ((x.x() >=
_c[0].x()) && (x.x() <=
_c[1].x()))
53 if ((x.y() >=
_c[0].y()) && (x.y() <=
_c[1].y()))
TRGPoint2D _c[2]
2D points
A class to represent a point in 2D.
virtual ~TRGArea2D()
Destructor.
TRGArea2D(const TRGPoint2D &leftBottom, const TRGPoint2D &rightUpper)
Constructor.
bool inArea(const TRGPoint2D &x) const
returns true if give point is in the area.
void cross(const TRGPoint2D &x0, const TRGPoint2D &x1, unsigned &nFound, TRGPoint2D crossPoint[2]) const
returns cross-points.
Abstract base class for different kinds of events.