System.Types.TPoint.Angle
Delphi
function Angle(const APoint: TPoint): Single;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Types.pas | System.Types | TPoint |
Description
Angle is equivalent to Arctan2(X, Y)
, which is the angle in radians between the positive X-axis of a plane and the point given by the coordinates (X, Y) on the plane. The angle is positive for counter-clockwise angles (upper half-plane, Y > 0), and negative for clockwise angles (lower half-plane, Y < 0).
Arctan2(0, 0)
is 0, because normally Arctan2(0, 0)
is undefined.