how to convert a vector to an angle in c# code example
Example: how to convert a vector to an angle in c#
// Make sure you're using system.
using System;
// degrees
double degrees = Math.Atan2(vector.X, vector.Y) * 180 / Math.PI
// radians
double radians = Math.Atan2(vector.X, vector.Y)