Newsgroups: comp.os.msdos.djgpp Date: Fri, 10 Jul 1998 14:53:46 -0300 (ADT) From: Endlisnis To: Ronald Patiņo G cc: "djgpp AT delorie DOT com" Subject: Re: About ray casting and look up tables In-Reply-To: <35A62FBB.AF821E92@cue.satnet.net> Message-ID: References: <35A62FBB DOT AF821E92 AT cue DOT satnet DOT net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 8bit Precedence: bulk On Fri, 10 Jul 1998, Ronald Patiņo G wrote: -> ang_rad = ang * TWOPIDIV360 ; ->insted of the one i'm using -> ->and why he says that 1920 is equivalent to 360 You are setting up a table of 360 evenly distributed values for angles (between 0 & 360). He is setting up a table of 1920 evenly distributed values for angles (between 0 & 360). All that means is that to look up in your table you use table[x] for some integer 'x', but he uses table[x/.1875]. Endlisnis [I have a pyramid of wingyness]