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()))
A class to represent an 2D area.
TRGPoint2D _c[2]
2D points
A class to represent a point in 2D.
double y(void) const
y of the point
virtual ~TRGArea2D()
Destructor.
double x(void) const
x of the point
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.