System.Types.TPointF.MidPoint

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

Delphi

function MidPoint(const APoint: TPointF): TPointF; inline;

C++

TPointF MidPoint(const TPointF &P) const _ALWAYS_INLINE {

プロパティ

種類 可視性 ソース ユニット
function public
System.Types.pas
SystemTypes.h
System.Types TPointF


説明

現在の TPointF オブジェクトと渡された APoint で作成された線分の中間点を計算します。

  • APoint: 2 つの点によって作成された線分の中間点を計算するために提供される

MidPoint は、直線の線分を 2 つの等しいパーツに分けた結果である、中間点の TPointF オブジェクトの座標を返します。

関連項目