POV-Ray : Newsgroups : povray.off-topic : Memories : Re: Memories Server Time
29 Jul 2024 22:31:50 EDT (-0400)
  Re: Memories  
From: Orchid XP v8
Date: 20 Aug 2011 06:46:04
Message: <4e4f906c$1@news.povray.org>
On 20/08/2011 11:30 AM, clipka wrote:
> Am 20.08.2011 11:34, schrieb Orchid XP v8:
>
>> I can still remember everybody laughing when he said that our assignment
>> was to write a program to draw a straight line. But *you* try doing that
>> with only integer arithmetic. It's surprisingly nontrivial.
>
> ... but can be accomplished by surprisingly elegant and (comparatively)
> fast code in Assembler. (What surprised me even more was to see how a
> similarly elegant and efficient algorithm could draw a circle. No
> trigonometrics, not even a radix, just plain Assembler commands you'd
> find on a Z80 processor.)

The circle is the locus of all points equidistant from the centre. It's 
not especially hard to do that with simple integer arithmetic.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.