TLazRegionEllipse.IsPointInPart function
Indicates if the specified point is located inside the elliptical area for the region.
Declaration
function IsPointInPart(AX: Integer; AY: Integer): Boolean; overrideArguments
AX | Horizontal coordinate for the point. |
AY | Vertical coordinate for the point. |
Function result
True when the specified point is located inside the area for the ellipse.Description
The equation for the inner area of an axis aligned ellipse is:
(X/a)^2 + (Y/b)^2 <= 1
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
