Loginskip to content

Atan2 NXT-G Block

news/
NXT Repository/Programming/NXT-G/

While atan returns the angle from the normal arctan function. With atan2 you enter the (x,y) coordinates of your vector and you receive the phase from [-180°,180°]. So, you also have the correct quadrant.