17#include <geos/export.h>
21#pragma warning(disable: 4251)
36namespace 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;
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:66
Models an OGC SFS LinearRing. A LinearRing is a LineString which is both closed and simple.
Definition: LinearRing.h:55
Represents a linear polygon, which may include holes.
Definition: Polygon.h:61
Clipping rectangle.
Definition: Rectangle.h:50
double xmax() const
Definition: Rectangle.h:90
Rectangle(double x1, double y1, double x2, double y2)
Construct a clipping rectangle.
geom::Polygon * toPolygon(const geom::GeometryFactory &f) const
static Position nextEdge(Position pos)
Next edge in clock-wise direction.
Definition: Rectangle.h:201
static bool onEdge(Position pos)
Test if the given position is on a Rectangle edge.
Definition: Rectangle.h:141
Position position(double x, double y) const
Establish position of coordinate with respect to a Rectangle.
Definition: Rectangle.h:167
static bool onSameEdge(Position pos1, Position pos2)
Test if the given positions are on the same Rectangle edge.
Definition: Rectangle.h:154
double xmin() const
Definition: Rectangle.h:69
double ymin() const
Definition: Rectangle.h:79
double ymax() const
Definition: Rectangle.h:101
Position
Position with respect to a clipping rectangle.
Definition: Rectangle.h:119
Basic namespace for all GEOS functionalities.
Definition: geos.h:39