Home > All Other Interfaces > ISpatialRelation > Crosses

Crosses

Returns TRUE if the interiors of both geometries intersect and the interior of the selected geometry intersects with the boundary of the other one.

 

JavaScript

 

Crosses(

      otherGeometry)

 

C#

 

bool Crosses(

      IGeometry otherGeometry)

 

C++

 

HRESULT Crosses(

      IGeometry* otherGeometry,

      VARIANT_BOOL* pVal)

Parameters

otherGeometry

An IGeometry representing the geometry which is being checked whether it crosses the selected geometry.

Return Value

pVal

Returns TRUE if the two geometries cross.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.