Rectangle
with the specified Rectangle
. Returns a new Rectangle
that represents the intersection of the two rectangles. If the two rectangles do not intersect, the result will be an empty rectangle.
@param r the specified Rectangle
@return the largest Rectangle
contained in both thespecified Rectangle
and in this Rectangle
; or if the rectangles do not intersect, an empty rectangle.
Geometry
representing the points shared by this Geometry
and other
. {@link GeometryCollection}s support intersection with homogeneous collection types, with the semantics that the result is a {@link GeometryCollection} of theintersection of each element of the target with the argument.
@param other the Geometry
with which to compute the intersection
@return the points common to the two Geometry
s
@throws TopologyException if a robustness error occurs
@throws IllegalArgumentException if the argument is a non-empty GeometryCollection
This method is related to the {@link Line#intersection(Line) intersection} method in the {@link Line Line} class, but in additionto compute the point along infinite lines, it also checks the point lies on both sub-line ranges.
@param subLine other sub-line which may intersect instance @param includeEndPoints if true, endpoints are considered to belong toinstance (i.e. they are closed sets) and may be returned, otherwise endpoints are considered to not belong to instance (i.e. they are open sets) and intersection occurring on endpoints lead to null being returned @return the intersection point if there is one, null if the sub-lines don't intersectThe intersection of two rectangles is the rectangle that covers the area which is contained within both rectangles.
@param rect the rectangle to intersect with the receiver @return the intersection of the receiver and the argument @exception IllegalArgumentException
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|