[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'DrawnControl' (#HMI)

TElement.GetVectorDirection

calculates the angle of a vector being given in screen coordinates.

Declaration

Source position: drawncontrol.pas line 36

protected class function TElement.GetVectorDirection(

  V: TPoint

):Extended;

Description

The angle is calculated in Radiant (rad). 0 rad is the rirection of the x axis.