Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="t"></param>
 /// <returns></returns>
 public double Repeat(double t)
 {
     return(SlurMath.Repeat(t, A, B));
 }
Esempio n. 2
0
        /// <summary>
        /// Returns the signed minimum difference between the two angles.
        /// </summary>
        /// <param name="a0"></param>
        /// <param name="a1"></param>
        /// <returns></returns>
        public static double GetMinAngleDifference(double a0, double a1)
        {
            var d0 = SlurMath.Repeat(a0 - a1, D.TwoPi);

            return(d0 > D.Pi ? d0 - D.TwoPi : d0);
        }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="t"></param>
 /// <returns></returns>
 public float Repeat(float t)
 {
     return(SlurMath.Repeat(t, A, B));
 }