Sign in Join
Wiki copytemporary

Angle16Deg: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Angle16Deg

OldNewLine
1+The one angle16deg is 1/16th of a degree. For example, a full circle equals 5760 (= 16*360).
2+
3+## function Angle16DegToRad
4+
5+Convert Angle16Deg to [[Radian|radian]]
6+
7+``` pascal
8+
9+function Angle16DegToRad(const a_angle16deg:integer):double;
10+begin
11+ result := a_angle16deg * Pi / ( 180 * 16 );
12+end;
13+```
14+
15+## function RadtoAngle16Deg
16+
17+Convert radian to Angle16Deg
18+
19+``` pascal
20+
21+function RadtoAngle16Deg(const a_radian:double):integer;
22+begin
23+ result := round ( a_radian * 180 * 16 / Pi );
24+end;
25+```
26+
27+## See also
28+
29+- [[Radian]]
30+- [[doc:lcl/graphics/tcanvas.chord.html|Chord]]
31+
32+---
33+*From the Free Pascal wiki, page "Angle16Deg", as it stood on 2020-02-09 after a change by GAN, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
34+Category: Mathematics

Back to history