cvs.gedasymbols.org/archives/browse.cgi | search |
From: | "Michael Stewart" <mike AT reggin DOT freeserve DOT co DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Polygon scan problem |
Date: | Mon, 18 Jan 1999 20:34:39 -0000 |
Organization: | Customer of Planet Online |
Lines: | 31 |
Message-ID: | <78065h$e3q$1@news5.svr.pol.co.uk> |
References: | <77tsdv$6mk$1 AT news7 DOT svr DOT pol DOT co DOT uk> <36A38DCC DOT A93B9488 AT cartsys DOT com> |
NNTP-Posting-Host: | modem-65.lithium.dialup.pol.co.uk |
X-Trace: | news5.svr.pol.co.uk 916691953 14458 62.136.1.65 (18 Jan 1999 20:39:13 GMT) |
NNTP-Posting-Date: | 18 Jan 1999 20:39:13 GMT |
X-Complaints-To: | abuse AT theplanet DOT net |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.5 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Nate Eldredge wrote in message <36A38DCC DOT A93B9488 AT cartsys DOT com>... >Michael Stewart wrote: >> >> I have been having an annoying problem whilst writing a scan convertor. >> Hopefully someone will be able to see what I am doing wrong. >> >> The problem I have been having concerns the accuracy of fixed point values. >> The routine works as it should while using doubles, however when converting >> to fixed point values I loose an enormous amount of accuracy, to much to be >> accounted for by the accuracy of a 16.16 fixed point value. >> >> I have tried using Allegros fixed point routines instead of my own and I get >> the exactly the same problem. Can anyone see what I am doing wrong ? > >Conversions between integer and `fixed' need to call the appropriate >routine (`itofix' or `fixtoi'). >-- > >Nate Eldredge >nate AT cartsys DOT com Sorry, I forgot to mention. I have been using the fixed point class from Allegro. All the operators are overloaded so I shouldn't need to call itofix or fixtoi.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |