Math
Direction of the Vector Calculator
Find the direction angle of a 2D vector.
Did this calculator solve your problem today?
✓ Thank you for your feedback!
Report issue to loopingon.com
Sponsored
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.
Frequently Asked Questions
Why use atan2 instead of atan?
atan2 uses both components to give the correct quadrant for the angle.
Advertisement