Example #1
0
        public static IEntity Trigonometric(this IEntity before, Time during, double to, TrigonometricFunction function)
        {
            var g = before as EntityGroup ?? new EntityGroup();

            g.Entities.Add(new TrigonometricEntity
            {
                DuringTime    = during,
                StartVelocity = before.LastVelocity,
                EndVelocity   = to,
                Function      = function,
            });
            return(g);
        }
Example #2
0
 public Drawer()
 {
     TFunction += cosinus;
 }
Example #3
0
 public TrigEquation(TrigonometricFunction tf, double argument)
 {
     this._arg      = argument;
     this._function = tf;
 }
Example #4
0
 private double GetSpeed(double v0, TrigonometricFunction function, double angle)
 {
     return(v0 * function(DegreesToRadians(angle)));
 }