Sign in Join
FPDoc Onlineexperiment

TLazRegionEllipse.IsPointInPart function

Member of TLazRegionEllipsepublicIn unit LazRegions

Indicates if the specified point is located inside the elliptical area for the region.

Declaration

pascal
function IsPointInPart(AX: Integer; AY: Integer): Boolean; override

Arguments

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.