Angle16Deg/fr

From Free Pascal wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

English (en) français (fr)

L'unité angle16deg est 1/16ème de degré. Par exemple, un cercle fait 5760 (= 16*360).

Fonction Angle16DegToRad

Convert Angle16Deg to radian

function Angle16DegToRad(const a_angle16deg:integer):double;
begin
  result := a_angle16deg * Pi / ( 180 * 16 );
end;

Fonction RadtoAngle16Deg

Convert radian to Angle16Deg

function RadtoAngle16Deg(const a_radian:double):integer;
begin
  result := round ( a_radian * 180 * 16 / Pi );
end;

Voir aussi