[Oberon] Oberon-7 - Circle Segments
Jörg
joerg.straube at iaeth.ch
Wed Feb 20 13:37:01 CET 2019
Tomas
Just for completeness: ☺
The formula c := (r * 181 + 104) DIV 209; [now with correct rounding] calculates the HourTicks absolutely correctly for all circles with radius “r” up to 780 pixels.
The formula c := (r * 71 + 41) DIV 82; is correct for circles with radius “r” up to 140 pixels. For larger circles it’s good as well, but sometimes off by one pixel.
br
Jörg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20190220/54b7e1b3/attachment.html>
More information about the Oberon
mailing list