Top "Atan2" questions

A function in many programming languages for computing the arctangent with two arguments

How to map atan2() to degrees 0-360

atan2(y, x) has that discontinuity at 180° where it switches to -180°..0° going clockwise. How do I map the range …

math quartz-2d atan2
How to calculate wind direction from U and V wind components in R

I have U and V wind component data and I would like to calculate wind direction from these values in …

r angle pi atan2
Calculate atan2 without std functions or C99

I am calculating angles from a 3-axis accelerometer, but my compiler doesn't have a atan or atan2 function. It has …

c math embedded arm atan2
Draw a polygon in C

i need to draw a polygon of "n" sides given 2 points (the center and 1 of his vertex) just that i …

c graphics polygon primitive atan2
Convert atan2 value to standard 360-degree-system value

Lets say I'm using atan2 to get the angle between two vectors. atan2 gives a value in radians. I convert …

math vector geometry trigonometry atan2
Angle between 2 points with atan2

I was reading this post about getting an angle between 2 points and was wondering. I thought atan2 is defined for …

java atan2
Calculating angles between line segments (Python) with math.atan2

I am working on a spatial analysis problem and part of this workflow is to calculate the angle between connected …

python trigonometry angle atan2 cartesian-coordinates
help to calculate atan2 properly

I need to calculate the angle between lines. I need to calculate atan. So I am using such code static …

objective-c image-rotation atan2
Calculate angle of touched point and rotate it in Android

Math has defeated me once again. This is such a simple task, but I can't manage to get it done. …

android math geometry atan2
Robust atan(y,x) on GLSL for converting XY coordinate to angle

In GLSL (specifically 3.00 that I'm using), there are two versions of atan(): atan(y_over_x) can only return angles …

c++ glsl coordinates atan2 numerical-stability