Direction of the Vector Calculator
Find the direction angle of a 2D vector.
The direction of a vector is the angle it makes with the positive x-axis.
The math behind it
θ = atan2(y, x), reported from 0° to 360° measured counter-clockwise from the positive x-axis.
Worked example
Vector (3, 4) → direction ≈ 53.13°, magnitude 5.
FAQ
Why use atan2 instead of atan?
atan2 uses both components to give the correct quadrant for the angle.