System.Types.TPoint.Distance

提供: RAD Studio API Documentation
移動先: 案内検索

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 つの点の間のユークリッド距離を計算します。

関連項目