delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/18/09:46:28

From: frenchc AT cadvision DOT com (frenchc)
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro Wierdness (fix class)...
Date: 11 Jan 1997 19:59:39 GMT
Organization: CADVision Development Corp.
Lines: 13
Message-ID: <5b8rfb$2da8@elmo.cadvision.com>
NNTP-Posting-Host: agtb106.cadvision.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm finding the allegro fix class to be a bit wierd. The overloaded
operators seem to work ok, but why are the trig functions implemented the
way they are? Is there something i'm not getting? Shouldn't they be
designed to make the following possible:

fix F, G;
(whatever) = F.cos();
(whatever) = F.sin();
(whatever) = F.atan2( G );

??? Thanks, the lib rocks, BTW,

- Calvin -

- Raw text -


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