using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpDX;

namespace Framefield.Core.IDeea53f81_d17c_4286_82ba_d1bf43318e22
{
    public class Class_Sin : OperatorPart.Function
    {
        public override OperatorPartContext Eval(OperatorPartContext context, List<OperatorPart> inputs, int outputIdx) {
            var angle = (float) inputs[0].Eval(context).Value;
            var period = (float) inputs[1].Eval(context).Value;
            var amplitute = (float) inputs[2].Eval(context).Value;
            var offset = (float) inputs[3].Eval(context).Value;
            var phase = (float) inputs[4].Eval(context).Value;
            //!!automatic generated code ends here
            context.Value = (float) (Math.Sin((angle + phase) / period *Math.PI) * amplitute + offset );
            //!!automatic generated code starts here
            return context;
        }
    }
}

