Calculates the difference of the given shapes. All next shapes are subtracted from the first shape. The returned shape may be any type of shape, or a shape list of multiple shapes, depending on what is required to describe the resulting shape.
For example, the difference of the red and blue shape is the green shape:
The operands of the boolean operation. There must be at least two shapes.
the result of the boolean operation.
Calculates the intersection of the given shapes. The resulting shape only contains points that are contained in all of the given shapes. The returned shape may be any type of shape, or a shape list of multiple shapes, depending on what is required to describe the resulting shape.
For example, the intersection of the red and blue shape is the green shape:
The operands of the boolean operation. There must be at least two shapes.
the result of the boolean operation.
Calculates the union of the given shapes. The resulting shape contains all points that are contained in any of the given shapes. The returned shape may be any type of shape, or a shape list of multiple shapes, depending on what is required to describe the resulting shape.
For example, the union of the red and blue shape is the resulting green shape:
The operands of the boolean operation. There must be at least two shapes.
the result of the boolean operation.
Offers methods to perform boolean operations on shapes. Use ConstructiveGeometryFactory to create instances of this class. For geodesy calculations see Geodesy. The following shapes are supported:
The resulting shapes will also be
Point
,Polyline
,Polygon
,ComplexPolygon
instances, orShapeList
instances containing those shapes. For example: