System.Types.PtInCircle

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

Delphi

function PtInCircle(const Point, Center: TPoint; Radius: Integer): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall PtInCircle _DEPRECATED_ATTRIBUTE1("use TPoint.PointInCircle instead") (const TPoint &Point, const TPoint &Center, int Radius)/* overload */;

プロパティ

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


説明

警告: PtInCircle は非推奨になっています。 TPoint.PointInCircle を使用してください。

指定した円の内部に指定した点があるかどうかを示します。

PtInCircle は、Center の中心にある、Radius の値の半径を持つ円の内部に Point があるかどうかを示します。 この円の内部に点がある場合、PtInCircleTrue を返します。それ以外の場合は False を返します。

PtInCircle は、Radius の値が NULL または負の場合も False を返します。

関連項目

コード サンプル