Normalise Angle
using System; public class MainClass{ public static double NormaliseAngle(double Angle) { return (Angle + 2 * Math.PI) % (2 * Math.PI); } }