SqlGeometry.ShortestLineTo(SqlGeometry) Method

Definition

Returns the shortest distance between the two SqlGeometryinstances.

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)]
public Microsoft.SqlServer.Types.SqlGeometry ShortestLineTo (Microsoft.SqlServer.Types.SqlGeometry other);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)>]
member this.ShortestLineTo : Microsoft.SqlServer.Types.SqlGeometry -> Microsoft.SqlServer.Types.SqlGeometry
Public Function ShortestLineTo (other As SqlGeometry) As SqlGeometry

Parameters

other
SqlGeometry

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

Returns

The shortest distance between the two SqlGeometry instances.

Attributes

Applies to