17 #include <geos/export.h>
22 #pragma warning(disable: 4251)
28 class GeometryFactory;
37 namespace intersection {
64 Rectangle(
double x1,
double y1,
double x2,
double y2);
129 TopLeft = Top | Left,
130 TopRight = Top | Right,
131 BottomLeft = Bottom | Left,
132 BottomRight = Bottom | Right
144 return (pos > Outside);
157 return onEdge(
Position(pos1 & pos2));
171 if(x > xMin && x < xMax && y > yMin && y < yMax) {
175 if(x < xMin || x > xMax || y < yMin || y > yMax) {
179 unsigned int pos = 0;
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:70
Clipping rectangle.
Definition: operation/intersection/Rectangle.h:51
double xmax() const
Definition: operation/intersection/Rectangle.h:91
Rectangle(double x1, double y1, double x2, double y2)
Construct a clipping rectangle.
static Position nextEdge(Position pos)
Next edge in clock-wise direction.
Definition: operation/intersection/Rectangle.h:202
static bool onEdge(Position pos)
Test if the given position is on a Rectangle edge.
Definition: operation/intersection/Rectangle.h:142
Position position(double x, double y) const
Establish position of coordinate with respect to a Rectangle.
Definition: operation/intersection/Rectangle.h:168
static bool onSameEdge(Position pos1, Position pos2)
Test if the given positions are on the same Rectangle edge.
Definition: operation/intersection/Rectangle.h:155
double xmin() const
Definition: operation/intersection/Rectangle.h:70
double ymin() const
Definition: operation/intersection/Rectangle.h:80
double ymax() const
Definition: operation/intersection/Rectangle.h:102
Position
Position with respect to a clipping rectangle.
Definition: operation/intersection/Rectangle.h:120
std::unique_ptr< geom::Polygon > toPolygon(const geom::GeometryFactory &f) const
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25