17 #include <geos/export.h> 21 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 27 class GeometryFactory;
36 namespace intersection {
63 Rectangle(
double x1,
double y1,
double x2,
double y2);
128 TopLeft = Top | Left,
129 TopRight = Top | Right,
130 BottomLeft = Bottom | Left,
131 BottomRight = Bottom | Right
143 return (pos > Outside);
156 return onEdge(
Position(pos1 & pos2));
170 if(x > xMin && x < xMax && y > yMin && y < yMax) {
174 if(x < xMin || x > xMax || y < yMin || y > yMax) {
178 unsigned int pos = 0;
static Position nextEdge(Position pos)
Next edge in clock-wise direction.
Definition: Rectangle.h:201
static bool onSameEdge(Position pos1, Position pos2)
Test if the given positions are on the same Rectangle edge.
Definition: Rectangle.h:154
static bool onEdge(Position pos)
Test if the given position is on a Rectangle edge.
Definition: Rectangle.h:141
Represents a linear polygon, which may include holes.
Definition: Polygon.h:61
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:66
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
Position
Position with respect to a clipping rectangle.
Definition: Rectangle.h:119
Models an OGC SFS LinearRing. A LinearRing is a LineString which is both closed and simple...
Definition: LinearRing.h:55
double xmax() const
Definition: Rectangle.h:90
double xmin() const
Definition: Rectangle.h:69
Position position(double x, double y) const
Establish position of coordinate with respect to a Rectangle.
Definition: Rectangle.h:167
double ymax() const
Definition: Rectangle.h:101
Clipping rectangle.
Definition: Rectangle.h:50
double ymin() const
Definition: Rectangle.h:79