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 {
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;
237 #endif // GEOS_OP_INTERSECTION_RECTANGLE_H static Position nextEdge(Position pos)
Next edge in clock-wise direction.
Definition: Rectangle.h:202
static bool onSameEdge(Position pos1, Position pos2)
Test if the given positions are on the same Rectangle edge.
Definition: Rectangle.h:155
static bool onEdge(Position pos)
Test if the given position is on a Rectangle edge.
Definition: Rectangle.h:142
Represents a linear polygon, which may include holes.
Definition: Polygon.h:64
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:68
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
Position
Position with respect to a clipping rectangle.
Definition: Rectangle.h:120
Models an OGC SFS LinearRing. A LinearRing is a LineString which is both closed and simple.
Definition: LinearRing.h:54
double xmax() const
Definition: Rectangle.h:91
double xmin() const
Definition: Rectangle.h:70
Position position(double x, double y) const
Establish position of coordinate with respect to a Rectangle.
Definition: Rectangle.h:168
double ymax() const
Definition: Rectangle.h:102
Clipping rectangle.
Definition: Rectangle.h:51
double ymin() const
Definition: Rectangle.h:80