FMX.Utils.IsPointInCircle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsPointInCircle(const APoint, ACenter: TPointF; const ARadius: Integer): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall IsPointInCircle(const System::Types::TPointF &APoint, const System::Types::TPointF &ACenter, const int ARadius);

Properties

Type Visibility Source Unit Parent
function public
FMX.Utils.pas
FMX.Utils.hpp
FMX.Utils FMX.Utils

Description

Checks if a point is inside of a circle.

IsPointInCircle accepts the following parameters:

  • APoint: The point to check.
  • ACenter: The center of the circle.
  • ARadius: The radius of the circle.

Returns True if APoint is inside or on the outline of a circle defined by ACenter and ARadius.

See Also