|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Trouble with raycasting in Turbo C
Try this: xinc = sangle[(tmp % 360)] / 100; I hope that is the correct syntax for the mod function (Otherwise known as remainder), I may be getting my languages mixed up. Jeff -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! Can somebody help me? I need a method of getting a remainder from a division, this is the code I'm using: xinc = sangle[<function here>(tmp, 360)] / 100; I want it to get the remainder from tmp (float) / 360 and then call the array of that number from the sangle double float, divide it by 100 and store it in xinc (double float). Can somebody help, please? Kind regards, Lionel Pinkhard - -- "The moon could not continue shining if it had to pay attention to all the dogs barking at it." - Anonymous -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.0.2i iQA/AwUBOSFyNxyaHU58l8oMEQKt9wCdHafkDGW2v+IhrFQ/81p5FXLtKjUAnjXJ nHP3Za0LJHRJiFrGRISrp5xt =dEMx -----END PGP SIGNATURE----- ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|