public static TCommand MovePathWithVelocity <TCommand>(this ISimpleMovementRules <TCommand> factory, double path, double velocity) where TCommand : ISimpleMovementCommand, new() { return(new TCommand { SimpleMovement = SimpleMovement.MoveWithVelocity(path, velocity) }); }
public static TCommand Move <TCommand>(this ISimpleMovementRules <TCommand> factory, double length) where TCommand : ISimpleMovementCommand, new() { return(new TCommand { SimpleMovement = SimpleMovement.MoveWithVelocity(length, factory.LinearVelocityLimit) }); }