Angle16Deg

From Free Pascal wiki
Revision as of 21:49, 27 October 2015 by Djzepi (talk | contribs) (Created page with "{{Angle16Deg}} The one angle16deg is 1/16th of a degree. For example, a full circle equals 5760 (= 16*360). == function Angle16DegToRad == Convert Angle16Deg to [[Radian|r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

English (en) français (fr)

The one angle16deg is 1/16th of a degree. For example, a full circle equals 5760 (= 16*360).

function Angle16DegToRad

Convert Angle16Deg to radian

function Angle16DegToRad(const a_angle16deg:integer):double; begin

 result := a_angle16deg * Pi * 16 / 180;

end;

function RadtoAngle16Deg

Convert radian to Angle16Deg

function RadtoAngle16Deg(const a_radian:double):integer; begin

 result := round ( a_radian * 180 * 16 / Pi );

end;

See also