TCircle

TCircle related methods

type definition is found in shared/globals.simba

TCircle.ToTPA

function TCircle.ToTPA(): TPointArray;

Returns a full TPA of the circles circumference


TCircle.Bounds

function TCircle.Bounds(): TBox;

Return a TBox covering the circle


TCircle.Contains

function TCircle.Contains(p: TPoint): Boolean;

Test if the point is within the circle


TCircle.Mean

function TCircle.Mean(): TPoint;

Middle of the circle, same as Point(Circle.X, Circle.Y)


TCircle.Circumference

function TCircle.Circumference(): Double;

Returns the distance around the outside of a circle.


TCircle.Area

function TCircle.Area(): Double;

Returns the area the circle covers


TCircle.Filter

function TCircle.Filter(TestSet: TPointArray): TPointArray;

Extract all the points from TestSet that fits within this circle.


TCircle.Expand

function TCircle.Expand(Inc: Int32): TCircle;

Increase or decrease the radius of the circle, same as Circle.Radius + Incr.