System.Types.PtInCircle
From RAD Studio API Documentation
Delphi
function PtInCircle(const Point, Center: TPoint; Radius: Integer): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall PtInCircle(const TPoint &Point, const TPoint &Center, int Radius);
Contents |
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Types.pas System.Types.hpp |
System.Types | System.Types |
Description
Indicates whether a specified point lies inside a specified circle.
PtInCircle indicates whether Point lies inside the circle centered in Center and with the radius of value Radius. PtInCircle returns True if the point lies inside or on the circle, and False otherwise.
PtInCircle also returns False if the value of Radius is null or negative.