Exemple #1
0
        /// <summary>
        /// Evaluate the curve at x.
        /// </summary>
        /// <param name="args"></param>
        /// <param name="x"></param>
        /// <returns></returns>
        public static Vector2 Evaluate(SinArgs args, float x)
        {
            var y = Evaluate(args.amplitude, args.angular, args.phase, x);

            return(new Vector2(x, y));
        }
Exemple #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="args">Args of curve.</param>
 public SinCurve(SinArgs args)
 {
     this.args = args;
 }