/// <summary> /// Wraps into range [-PI, PI] /// </summary> public static double PiWrap(this double angle) => Trigonometry.PiWrap(angle);
public void PiWrap(double value, double expected) { Assert.AreEqual(expected, Trigonometry.PiWrap(value)); }
/// <summary> /// Wraps into range [-PI, PI] /// </summary> public static double PiWrap(this double angle) => Trigonometry.PiWrap(angle);
public void PiWrap(double value, double expected) { Assert.AreEqual(expected, Trigonometry.PiWrap(value)); }