This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IR > IRelationalOperator Interface > IRelationalOperator.Touches Method (ArcObjects .NET 10.5 SDK) |
Indicates if the boundaries of the geometries intersect.
[Visual Basic .NET] Public Function Touches ( _ ByVal other As IGeometry _ ) As Boolean
[C#] public bool Touches ( IGeometry other );
[C++]
HRESULT Touches(
IGeometry* other,
VARIANT_BOOL* Touches
);
[C++]
Parameters other
other is a parameter of type IGeometry Touches [out, retval] Touches is a parameter of type VARIANT_BOOL
Two geometries are said to touch when the intersection of the geometries is non-empty, but the intersection of their interiors is empty. Touches is a Clementini operator. For example, a point touches a polyline only if the point is coincident with one of the polyline end points.
Touches examples. Only "true" relationships are showed in this picture.
Only geometries that support the IRelationalOperator interface can be used as input geometries.
Touch does not apply for point/point comparison.
If either one of the two geometries is empty, the geometries are not touched.