15 #ifndef GEOS_OP_INTERSECTION_RECTANGLE_H
16 #define GEOS_OP_INTERSECTION_RECTANGLE_H
18 #include <geos/export.h>
22 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
28 class GeometryFactory;
37 namespace intersection {
51 class GEOS_DLL Rectangle {
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));
168 position(
double x,
double y)
const
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;
237 #endif // GEOS_OP_INTERSECTION_RECTANGLE_H
Models an OGC SFS LinearRing. A LinearRing is a LineString which is both closed and simple.
Definition: LinearRing.h:53
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:24
Clipping rectangle.
Definition: Rectangle.h:50
Represents a linear polygon, which may include holes.
Definition: Polygon.h:63
Position
Position with respect to a clipping rectangle.
Definition: Rectangle.h:119
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:67