www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/10/15:46:37

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: About ray casting and look up tables
Date: Fri, 10 Jul 1998 11:26:13 -0700
Organization: Alcyone Systems
Lines: 20
Message-ID: <35A65CC5.31645627@alcyone.com>
References: <35A62FBB DOT AF821E92 AT cue DOT satnet DOT net>
NNTP-Posting-Host: charmaine.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ronald Patixo G wrote:

> I don't understand why he uses this formula
> 
>     ang_rad = ang * TWOPIDIV360 ;
> insted of the one i'm using
> 
> and why he says that 1920 is  equivalent to 360

It looks like he's simply using a different degree unit.  Instead of
using units of 1 deg, like you are, he wants higher resolution and is
using units of 360/1920 deg = 0.1875 deg.

-- 
         Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                       Alcyone Systems / http://www.alcyone.com/max/
  San Jose, California, United States / icbm:+37.20.07/-121.53.38
                                     \
           I put away my nine, fool / 'cause I'm colorblind.
                                   / Ice Cube

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019