/// <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)); }
/// <summary> /// Constructor. /// </summary> /// <param name="args">Args of curve.</param> public SinCurve(SinArgs args) { this.args = args; }