Documentation / AutoCAD Map 3D Geospatial Platform API / AutoCAD Map 3D 2009 Geospatial Platform Reference
AutoCAD Map 3D 2009 Geospatial Platform Reference
From AutoCAD Map 3D Geospatial Platform API
Returns the shortest distance between this geometry and another. By default distance computation is done using a linear algorithm unless a custom measure is supplied.
.NET Syntax
virtual double Distance(MgGeometry other, MgMeasure measure);
Java Syntax
virtual double Distance(MgGeometry other, MgMeasure measure);
PHP Syntax
virtual double Distance(MgGeometry other, MgMeasure measure);
Parameters:
Returns: A double value representing the shortest distance between two geometries.