GetAngle

function GetAngle(const origin, pt: TPoint): double; overload;

function GetAngle(const origin, pt: TPointD): double; overload;

function GetAngle(const pt1, pt2, pt3: TPoint): double; overload;

function GetAngle(const pt1, pt2, pt3: TPointD): double; overload;


The result's range will be between -PI and +PI.

When there are two parameters (origin & pt):


When there are three parameters (pt1, pt2 & pt3), the result will again depend on ClockwiseRotationIsAnglePositive.

See Also

Img32