Roman Reiner <limdaepl [at] gmx de> 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
|