POV-Ray : Newsgroups : povray.tools.general : sin cos delta : Re: sin cos delta Server Time: 30 Aug 2008 14:42:53 GMT
  Re: sin cos delta  
From: Warp
Date: 29 May 2007 15:07:11
Roman Reiner <limdaepl [at] gmxde> wrote:
> You'd probably need to use atan(dy/dx). however the usage of atan is a
> little problematic since dx is not necessarily unequal zero and it's
> difficult to get exact angles since e.g. atan(1) could be both 45° or 225°
> (which is the opposite direction).

  That's exactly why atan2() exists.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2008 Persistence of Vision Raytracer Pty. Ltd.