15 #ifndef GEOS_OP_INTERSECTION_RECTANGLE_H 16 #define GEOS_OP_INTERSECTION_RECTANGLE_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.
static bool onSameEdge(Position pos1, Position pos2)
Test if the given positions are on the same Rectangle edge.
static bool onEdge(Position pos)
Test if the given position is on a Rectangle edge.
Position position(double x, double y) const
Establish position of coordinate with respect to a Rectangle.
Represents a linear polygon, which may include holes.
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Basic namespace for all GEOS functionalities.
Position
Position with respect to a clipping rectangle.
Models an OGC SFS LinearRing. A LinearRing is a LineString which is both closed and simple...