DbGeometry.Distance(DbGeometry) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
計算此 DbGeometry 值中最近點與另一個 DbGeometry 值之間的距離。
public:
Nullable<double> Distance(System::Data::Spatial::DbGeometry ^ other);
public double? Distance(System.Data.Spatial.DbGeometry other);
member this.Distance : System.Data.Spatial.DbGeometry -> Nullable<double>
Public Function Distance (other As DbGeometry) As Nullable(Of Double)
參數
- other
- DbGeometry
應計算與此值距離的幾何值。
傳回
一個雙重值,指定此幾何中兩個最近點之間的距離,值與 other。
例外狀況
other