Tests whether this geometry crosses the specified geometry.
The crosses
predicate has the following equivalent definitions:
- The geometries have some but not all interior points in common.
- The DE-9IM Intersection Matrix for the two geometries matches
[T*T******]
(for P/L, P/A, and L/A situations) [T*****T**]
(for L/P, A/P, and A/L situations) [0********]
(for L/L situations)
For any other combination of dimensions this predicate returns
false
.
The SFS defined this predicate only for P/L, P/A, L/L, and L/A situations. JTS extends the definition to apply to L/P, A/P and A/L situations as well, in order to make the relation symmetric.
@param g the Geometry
with which to compare this Geometry
@return true
if the two Geometry
s cross.