Path: utzoo!attcan!uunet!zephyr.ens.tek.com!orca!quasi.tek.com!garyc From: garyc@quasi.tek.com (Gary Combs;685-2072;61-236;;orca) Newsgroups: comp.windows.x Subject: Re: Xtank Message-ID: <5244@orca.WV.TEK.COM> Date: 6 Nov 89 15:41:19 GMT References: <4292@hemuli.atk.vtt.fi> <127042@sun.Eng.Sun.COM> Sender: nobody@orca.WV.TEK.COM Lines: 3 The DOMAIN error is because the program passes x=0 and y=0 to atan2. Just check for x=y=0 and return 0. Works for me.