delorie.com/archives/browse.cgi | search |
Newsgroups: | comp.os.msdos.djgpp |
Date: | Fri, 10 Jul 1998 14:53:46 -0300 (ADT) |
From: | Endlisnis <s257m AT unb DOT ca> |
To: | Ronald Patiño G <logan AT cue DOT satnet DOT net> |
cc: | "djgpp AT delorie DOT com" <djgpp AT delorie DOT com> |
Subject: | Re: About ray casting and look up tables |
In-Reply-To: | <35A62FBB.AF821E92@cue.satnet.net> |
Message-ID: | <Pine.SOL.3.96.980710144853.7738A-100000@sol.sun.csd.unb.ca> |
References: | <35A62FBB DOT AF821E92 AT cue DOT satnet DOT net> |
MIME-Version: | 1.0 |
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]
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |