Table of Contents

TTMSFNCGraphics.PointInCircle Method

Tests whether a point lies within a circle.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Syntax

class function PointInCircle(APoint: TPointF; ACenter: TPointF; const ARadius: Single): Boolean; virtual;

Parameters

Name Description
APoint Point to test.
ACenter Center of the circle.
ARadius Radius of the circle in pixels.

Returns

True if APoint falls within or on the boundary of the circle.