SqlGeometry.ShortestLineTo Method (SqlGeometry)

 

Returns the shortest distance between the two SqlGeometryinstances.

Namespace:   Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeometry ShortestLineTo(
	SqlGeometry other
)

Parameters

other
Type: Microsoft.SqlServer.Types.SqlGeometry

The SqlGeometry instance that the calling SqlGeometry instance is trying to determine the shortest distance to.

Return Value

Type: Microsoft.SqlServer.Types.SqlGeometry

The shortest distance between the two SqlGeometry instances.

Return to top
Show: