SqlGeometry.ShortestLineTo(SqlGeometry) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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