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); }
public Drawer() { TFunction += cosinus; }
public TrigEquation(TrigonometricFunction tf, double argument) { this._arg = argument; this._function = tf; }
private double GetSpeed(double v0, TrigonometricFunction function, double angle) { return(v0 * function(DegreesToRadians(angle))); }