System.Types.TPoint.Distance
Delphi
function Distance(const P2 : TPoint) : Double;
C++
double Distance(const TPoint& p2) const _ALWAYS_INLINE {
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Types.pas SystemTypes.h |
System.Types | TPoint |
説明
2 つの点によって決定される分節の長さを計算します。
Distance 関数は、現在のオブジェクトと、P2
パラメータで指定される点との間の距離を計算します。2 つの点の間のユークリッド距離を計算します。